TiLabel.Alignment
TiLabel See Also
Controls the horizontal placement of the text within the control.
type TiAlignmentHorizontal = (iahCenter, iahLeft, iahRight);
property Alignment : TiAlignmentHorizontal;
Description
Set Alignment to specify how the text is aligned within the ClientRect of the
control.
These are the possible values:
Value
Meaning
iahCenter
Text is centered in the control.
iahLeft
Text is left-justified: Begins at the left edge of the control.
iahRight
Text is right-justified: Ends at the right edge of the control.
Example
Delphi
iComponent.Alignment := iahCenter;
C++ Builder
iComponent->Alignment = iahCenter;
Contents | Index | Previous | Next