Back to Devexpress

LayoutGroup.Enabled Property

windowsforms-devexpress-dot-xtralayout-dot-layoutgroup-b0872019.md

latest3.6 KB
Original Source

LayoutGroup.Enabled Property

Gets or sets whether layout items that belong to the current group are enabled.

Namespace : DevExpress.XtraLayout

Assembly : DevExpress.XtraLayout.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(true)]
[DXCategory("Behavior")]
[XtraSerializableProperty]
[XtraSerializablePropertyId(300)]
public bool Enabled { get; set; }
vb
<DefaultValue(True)>
<DXCategory("Behavior")>
<XtraSerializableProperty>
<XtraSerializablePropertyId(300)>
Public Property Enabled As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true if layout items that belong to the current group are enabled; otherwise, false.

|

Remarks

Setting the Enabled property to false disables the controls displayed by the layout items in the current group and its nested groups. Setting the Enabled property back to true restores the original values of the controls’ Enabled properties.

Note

At design time, setting a group’s Enabled property to false disables the group’s controls. If this property has been set to false at design time, setting it back to true at runtime doesn’t enable the group’s controls. In this instance, you’ll need to manually enable the group’s controls.

When a group is represented as a tab within a TabbedControlGroup, you can disable the tab via the LayoutGroup.PageEnabled property.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Enabled property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-richedit-layout-api/CS/Form1.cs#L114

csharp
richEditControl1.BeforePagePaint += richEditControl1_BeforePagePaint;
    layoutControlGroup2.Enabled = true;
}

winforms-richedit-layout-api/VB/Form1.vb#L94

vb
AddHandler richEditControl1.BeforePagePaint, AddressOf richEditControl1_BeforePagePaint
    LayoutControlGroup2.Enabled = True
Else

See Also

DisabledLayoutGroupCaption

DisabledLayoutItem

PageEnabled

LayoutGroup Class

LayoutGroup Members

DevExpress.XtraLayout Namespace