|
|
|
|
|
- Horizontal alignment
- Limitations
VerticalAlignment (Property) In french: CadrageVertical
Vertical alignment determines how the text is positioned relative to the borders of the control. This allows you to center the content of an Edit control in relation to the borders of the input area. There are three types of alignment: - Align top
- Align middle
- Align bottom
The VerticalAlignment property gets and changes the vertical alignment of a control. The initial alignment is defined in the control description. // If the control is aligned to top, align it at bottom IF STC_Static.VerticalAlignment = vaTop THEN STC_Static.VerticalAlignment = vaBottom END
Syntax
Getting the vertical alignment of a control Hide the details
<Current alignment> = <Control used>.VerticalAlignment
<Current alignment>: Integer constant Current vertical alignment of the control. The possible values are as follows:
| | vaBottom | the text is located at the bottom of the control | vaMiddle | the text is located in the middle of the control | vaTop | the text is located at the top of the control |
<Control used>: Control name Name of the control to be used.
Changing the vertical alignment of a control Hide the details
<Control used>.VerticalAlignment = <New alignment>
<Control used>: Control name Name of the control to be used. <New alignment>: Integer constant New alignment of the control. The possible values are:
| | vaBottom | the text is located at the bottom of the control | vaMiddle | the text is located in the middle of the control | vaTop | the text is located at the top of the control |
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|