radiobutton AlignmentHorz property
Return to Introduction  Previous page  Next page
Applies to
acRadioButton and acCheckBox components.  

  TAlignment = (taLeftJustify, taRightJustify, taCenter);  
property AlignmentHorz: TAlignment;  

The AlignmentHorz property controls horizontal placement of text string that appears as a label for radiobutton control.  
By default, text is lined up along the left edge of control (near the check box, if BoxAlignment is taLeftJustify as well). To make text lined up along the right edge — set AlignmentHorz to taRightJustify. For centering the text horziontally within a client area of control — set AlignmentHorz to taCenter.  
tip The effect of the AlignmentHorz property is more obvious if the WordWrap property is True and the caption includes more than one line of text.  


See also
AlignmentVert property.