|
|
|
|
|
- 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 Text control in relation to the control borders. There are different alignment options: - alignment to the left
- right-hand alignment
- centered
- 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 LIB_libellé1.CadrageHorizontal = haLeft THEN
LIB_libellé1.CadrageHorizontal = 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 as follows:
| | 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 as follows:
| | 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…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|