Back to Devexpress

BarListItem.Enabled Property

windowsforms-devexpress-dot-xtrabars-dot-barlistitem-772d8c31.md

latest2.7 KB
Original Source

BarListItem.Enabled Property

Determines whether the current bar item is active.

Namespace : DevExpress.XtraBars

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public override bool Enabled { get; set; }
vb
Public Overrides Property Enabled As Boolean

Property Value

TypeDescription
Boolean

true if the current bar item is active; otherwise, false.

|

Remarks

This method overrides the BarItem.Enabled 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-dashboard-display-each-series-in-separate-pane-for-chart-items/CS/MultiPaneExtension/MultiPaneModule.cs#L158

csharp
enableBarItem.Enabled = showTitlesBarItem.Enabled =
    allowCollapsingBarItem.Enabled = layoutModeBarItem.Enabled = false;
return;

winforms-dashboard-display-each-series-in-separate-pane-for-chart-items/VB/MultiPaneExtension/MultiPaneModule.vb#L134

vb
enableBarItem.Checked = showTitlesBarItem.Checked
layoutModeBarItem.Enabled = False
allowCollapsingBarItem.Enabled = layoutModeBarItem.Enabled

See Also

Enabled

BarListItem Class

BarListItem Members

DevExpress.XtraBars Namespace