Skip to main content
Bar

BarListItem.ItemIndex Property

Specifies the index of the selected(checked) item in a list.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v25.2.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DefaultValue(-1)]
public virtual int ItemIndex { get; set; }

Property Value

Type Default Description
Int32 -1

The selected(checked) item index.

Remarks

Use this property to select a specific item in a list at runtime. The default value means that no item is selected. The item index is zero-based.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ItemIndex 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.

See Also