|
|
|
|
|
- Horizontal alignment and text that overflows the control
- Vertical alignment
- Limitation
HorizontalAlignment (Property) In french: CadrageHorizontal
Horizontal alignment determines how the text is positioned relative to the borders of the control. This allows you to center the content of a Static control in relation to the control borders. There are different alignment options: - align left
- align right
- center
- justify
The HorizontalAlignment property gets and changes the horizontal alignment of a control. The initial alignment is defined in the editor, in the control description.
IF STC_Static1.HorizontalAlignment = haLeft THEN
STC_Static1.HorizontalAlignment = haRight
END
Syntax
Getting the horizontal alignment of a control Hide the details
<Current alignment>.HorizontalAlignment = <Control used>
<Current alignment>: Integer constant Current horizontal alignment of the control. The possible values are:
| | haCenter | The text is centered. | haJustified | The text is justified. | haLeft | The text is aligned to the left. | haNotDefined | Alignment defined by the CSS inheritance. This constant is only available in WEBDEV. | haRight | The text is aligned to the right. |
<Control used>: Control name Name of the control to be used.
Changing the horizontal alignment of a control Hide the details
<Control used>.HorizontalAlignment = <New alignment>
<Control used>: Control name Name of the control to be used. <New alignment>: Integer constant New horizontal alignment of the control. The possible values are:
| | haCenter | The text is centered. | haJustified | The text is justified. | haLeft | The text is aligned to the left. | haNotDefined | Alignment defined by the CSS inheritance. This constant is only available in WEBDEV. | haRight | The text is aligned to the right. |
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|