Back to Devexpress

AccordionControl.SelectElement(AccordionControlElement) Method

windowsforms-devexpress-dot-xtrabars-dot-navigation-dot-accordioncontrol-dot-selectelement-x28-devexpress-dot-xtrabars-dot-navigation-dot-accordioncontrolelement-x29.md

latest3.0 KB
Original Source

AccordionControl.SelectElement(AccordionControlElement) Method

Selects the specified element. This method is in effect if item selection is enabled with the AccordionControl.AllowItemSelection property.

Namespace : DevExpress.XtraBars.Navigation

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public void SelectElement(
    AccordionControlElement element
)
vb
Public Sub SelectElement(
    element As AccordionControlElement
)

Parameters

NameTypeDescription
elementAccordionControlElement

An item to select.

|

Remarks

Calling the SelectElement method is equivalent to assigning an item to the AccordionControl.SelectedElement property. See this topic for more information.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the SelectElement(AccordionControlElement) 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-generate-skin-palettes-with-ai/CS/DevExpress.AI.WinForms.AIGeneratePalette.Demo/AccordionShellForm.cs#L36

csharp
navigationAccordion.SelectElement(navigationAccordion.Elements[0].Elements[0]);
}

See Also

AllowItemSelection

SelectedElement

SelectedElementChanged

AccordionControl Class

AccordionControl Members

DevExpress.XtraBars.Navigation Namespace