Controls that display text
For most controls that display text, the alignment property specifies the alignment of all the text in the control. Text can be centered, left aligned, or right aligned.
To specify text alignment for controls other than
RichTextEdit:
On the General page of the control’s Properties view, select an alignment from the Alignment drop-down list, or click the Left, Center, and Right alignment buttons in the StyleBar. Use the StyleBar to set the alignment for several selected objects at once.
The datatype of the Alignment property is the Alignment enumerated datatype. It has four values: Center!, Left!, and Right! apply to all controls with text, Justify! applies only to RichTextEdit controls.
For example, the following line specifies center alignment for a MultiLineEdit control:
mle_1.Alignment = Center!
Copyright © 2004. Sybase Inc. All rights reserved. |
![]() |