Skip to main content

OptionsItemText.AlignControlsWithHiddenText Property

Gets or sets whether controls with hidden text must be aligned when the control horizontal alignment is enabled.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DefaultValue(false)]
[XtraSerializableProperty(XtraSerializationVisibility.Hidden)]
public bool AlignControlsWithHiddenText { get; set; }

Property Value

Type Default Description
Boolean false

true if controls with hidden text must be aligned when the control horizontal alignment is enabled; otherwise, false.

Property Paths

You can access this nested property as listed below:

Object Type Path to AlignControlsWithHiddenText
LayoutControl
.OptionsItemText .AlignControlsWithHiddenText

Remarks

By default, the AlignControlsWithHiddenText property is set to false. So controls with hidden text are not aligned when the control horizontal alignment is enabled. Otherwise, they are aligned along with other controls.

The following image illustrates how the AlignControlsWithHiddenText property works:

AlignControlsWithHiddenText

In this image, the text of the layout item which displays the check box is hidden. The “Is Customer” text is drawn by the CheckBox control, not by the layout item.

Each group can override the LayoutControl’s AlignControlsWithHiddenText property setting. To do this, set the group’s OptionsItemTextGroup.TextAlignMode property to TextAlignModeGroup.AlignLocal and set the group’s OptionsItemTextGroup.AlignControlsWithHiddenText property to the required value.

See Also