Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxCustomLayoutItemCaptionOptions.AlignHorz Property

Specifies horizontal caption text alignment.

#Declaration

Delphi
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