Skip to main content

TdxCustomLayoutItemCaptionOptions.AlignHorz Property

Specifies horizontal caption text alignment.

Declaration

property AlignHorz: TAlignment read; write; default taLeftJustify;

Property Value

Type Default Description
TAlignment taLeftJustify

A horizontal alignment option.

Remarks

Options include:

Value Layout Item Example Layout Group Example Separator Example
taLeftJustify Left-Aligned Item Caption Example Left-Aligned Group Caption Example Left-Aligned Separator Caption Example
taCenter Centered Item Caption Example Centered Group Caption Example Centered Separator Caption Example
taRightJustify Right-Aligned Item Caption Example Right-Aligned Group Caption Example Right-Aligned Separator Caption Example

Note

The AlignHorz property has no effect on vertically oriented captions:

  • The caption of a layout item or layout group is vertically oriented if the Layout property is set to clLeft or clRight.
  • A separator is vertically oriented when the separator’s height exceeds its width on the screen.

The AlignHorz property’s default value is taLeftJustify.

See Also