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.v24.2.dll
NuGet Package: DevExpress.Wpf.Docking
#Declaration
public CaptionAlignMode CaptionAlignMode { get; set; }
#Property Value
Type | Description |
---|---|
Caption |
A Caption |
Available values:
Name | Description |
---|---|
Default | For nested layout items, this setting means that the alignment is controlled by the parent’s Caption |
Align |
Controls displayed by means of Layout |
Auto |
The auto-size feature is enabled. The captions of Layout |
Custom | Enables custom size mode, in which the size of a Layout |
#Remarks
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.