RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TControl.GetControlsAlignment Method

Indicates how text is aligned within the control.

Pascal
function GetControlsAlignment: TAlignment; dynamic;
C++
__fastcall TAlignment GetControlsAlignment();

Use GetControlsAlignment to determine the alignment of the control. For controls that do not have an Alignment property, GetControlsAlignment returns taLeftJustify.

Note: GetControlsAlignment returns the alignment of text before it is altered by the BiDiMode property. To check if the alignment should be reversed to reflect the BiDiMode property, call UseRightToLeftAlignment.
 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!