BaseLayoutItem.CaptionAlignMode Property

Gets or sets the alignment settings of a control(s) displayed by a LayoutControlItem object(s). This is a dependency property.

Namespace: DevExpress.Xpf.Docking

Assembly: DevExpress.Xpf.Docking.v20.1.dll


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

Property Value

Type Description

A CaptionAlignMode value that specifies the caption alignment settings.


By default, the CaptionAlignMode property of all layout items is set to CaptionAlignMode.Default. In this mode, the alignment settings of the layout items are controlled by the parent group's CaptionAlignMode property. If the parent group's CaptionAlignMode property is set to Default, the alignment settings are controlled by the group's parent, and so on. For the root group, the CaptionAlignMode.Default setting is equivalent to the CaptionAlignMode.AlignInGroup setting, which means that controls of LayoutControlItems are aligned by their left edges across this group and its nested groups that have the CaptionAlignMode property set to Default.

If a specific item's CaptionAlignMode property is set to any value except CaptionAlignMode.Default, the parent alignment settings are ignored.

See Also