windowsforms-devexpress-dot-xtrabars-dot-navigation-dot-accordioncontrol-b77d1884.md
Creates a new AccordionControlElement owned by this AccordionControl.
Namespace : DevExpress.XtraBars.Navigation
Assembly : DevExpress.XtraBars.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
public AccordionControlElement AddItem()
Public Function AddItem As AccordionControlElement
| Type | Description |
|---|---|
| AccordionControlElement |
An AccordionControlElement object created by this method.
|
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AddItem() method.
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#L48
foreach( string dashboardFile in Directory.GetFiles("Dashboards", "*.xml", SearchOption.TopDirectoryOnly)) {
AccordionControlElement item = dashboardsAccordion.AddItem();
item.Text = dashboardFile.Replace("Dashboards\\","").Replace(".xml","");
winforms-dashboard-custom-items-extension/VB/CustomItemTest/DesignerForm1.vb#L49
For Each dashboardFile As String In Directory.GetFiles("Dashboards", "*.xml", SearchOption.TopDirectoryOnly)
Dim item As AccordionControlElement = dashboardsAccordion.AddItem()
item.Text = dashboardFile.Replace("Dashboards\","").Replace(".xml","")
See Also