OptionsItemTextGroup.TextAlignMode Property

Gets or sets the alignment settings of the controls displayed in the current group.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v20.1.dll

Declaration

[DefaultValue(TextAlignModeGroup.UseParentOptions)]
[XtraSerializableProperty]
public virtual TextAlignModeGroup TextAlignMode { get; set; }
<DefaultValue(TextAlignModeGroup.UseParentOptions)>
<XtraSerializableProperty>
Public Overridable Property TextAlignMode As TextAlignModeGroup

Property Value

Type Default Description
TextAlignModeGroup

UseParentOptions

A TextAlignModeGroup value which specifies the alignment settings of the controls.

Property Paths

You can access this nested property as listed below:

Object Type Path to TextAlignMode
LayoutViewCard
.OptionsItemText.TextAlignMode
LayoutControlGroup
.OptionsItemText.TextAlignMode
LayoutGroup
.OptionsItemText.TextAlignMode

Remarks

By default, the TextAlignMode property is set to TextAlignModeGroup.UseParentOptions. In this instance, the controls displayed within the current group are aligned according to the alignment settings of the group's parent. For the root group, its parent is the LayoutControl itself. For other groups, their parents are upper-level groups. The alignment settings of the LayoutControl are specified by the OptionsItemText.TextAlignMode property of the LayoutControl.OptionsItemText object.

If the TextAlignMode property is set to a value other than TextAlignModeGroup.UseParentOptions the alignment settings of the controls within this group are no longer controlled by its parent.

For each layout item you can override the alignment settings of its parent using the LayoutControlItem.TextAlignMode property.

See Also