windowsforms-devexpress-dot-xtrabars-dot-listitemclickeventargs-933fca29.md
Gets the index of the clicked list item.
Namespace : DevExpress.XtraBars
Assembly : DevExpress.XtraBars.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
public int Index { get; }
Public ReadOnly Property Index As Integer
| Type | Description |
|---|---|
| Int32 |
A zero-based integer value representing the index of the clicked list item.
|
This property returns the clicked list item’s position within the bar item’s BarListItem.Strings collection.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Index 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.
MultiPaneSettings settings = MultiPaneSettings.FromJson(dashboardItem.CustomProperties[customPropertyName]);
settings.UseGridLayout = e.Index==0;
string status = settings.UseGridLayout == true ? "Grid" : "Linear";
Dim settings As MultiPaneSettings = MultiPaneSettings.FromJson(dashboardItem.CustomProperties(customPropertyName))
settings.UseGridLayout = e.Index=0
Dim status As String = If(settings.UseGridLayout = True, "Grid", "Linear")
See Also