Skip to main content

ListBoxEdit.SelectedIndex Property

Gets or sets the index of the currently selected item. This is a dependency property.

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v14.2.dll

#Declaration

public int SelectedIndex { get; set; }

#Property Value

Type Description
Int32

A zero-based integer value that specifies the currently selected item's index. -1 if no item is selected.

#Remarks

If multiple item selection is enabled, the SelectedIndex property returns the index of the first element in the ListBoxEdit.SelectedItems collection.

To obtain the currently selected item, use the ListBoxEdit.SelectedItem property.

#Implements

DevExpress.Xpf.Editors.Internal.ISelectorEdit.SelectedIndex
See Also