OptionsItemText.TextAlignMode Property

Gets or sets the alignment settings of the controls which are displayed in the LayoutControl.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v20.1.dll


public TextAlignMode TextAlignMode { get; set; }
Public Property TextAlignMode As TextAlignMode

Property Value

Type Default Description


A TextAlignMode value which specifies the current alignment mode.

Property Paths

You can access this nested property as listed below:

Object Type Path to TextAlignMode


Use this property to specify the alignment settings of the controls displayed in the LayoutControl. The TextAlignMode property allows you to choose whether the controls must be aligned throughout the LayoutControl or independently within groups. Additionally, you can enable the text auto-size feature or prevent the text region size from being controlled automatically. See the TextAlignMode topic for more information on the available options.

For each group you can override the LayoutControl's TextAlignMode property setting via its OptionsItemTextGroup.TextAlignMode property which can be accessed via the LayoutGroup.OptionsItemText property.

In addition, for each layout item you can override the alignment settings of its parents using the LayoutControlItem.TextAlignMode property.

See Also