windowsforms-devexpress-dot-xtrabars-dot-navigation-dot-accordioncontrol.md
Provides access to AccordionControlElements that serve as root elements for this AccordionControl.
Namespace : DevExpress.XtraBars.Navigation
Assembly : DevExpress.XtraBars.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[DXCategory("Data")]
[XtraSerializableProperty(true, true, false, 999)]
public AccordionControlElementCollection Elements { get; }
<DXCategory("Data")>
<XtraSerializableProperty(True, True, False, 999)>
Public ReadOnly Property Elements As AccordionControlElementCollection
| Type | Description |
|---|---|
| DevExpress.XtraBars.Navigation.AccordionControlElementCollection |
A DevExpress.XtraBars.Navigation.AccordionControlElementCollection object that stores all AccordionControlElements that serve as root elements for this AccordionControl.
|
The Elements collection stores only top-level items and groups. To access sub-groups and items within these elements, use their AccordionControlElement.Elements properties.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Elements 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-custom-items-extension/CS/CustomItemTest/DesignerForm1.cs#L32
GenerateAccordionElements();
dashboardsAccordion.SelectedElement = dashboardsAccordion.Elements[2];
dashboardsAccordion.ScrollBarMode = ScrollBarMode.Auto;
winforms-dashboard-custom-items-extension/VB/CustomItemTest/DesignerForm1.vb#L33
GenerateAccordionElements()
dashboardsAccordion.SelectedElement = dashboardsAccordion.Elements(2)
dashboardsAccordion.ScrollBarMode = ScrollBarMode.Auto
See Also
ForEachElement(Action<AccordionControlElement>)