Selector.SelectedIndex Selector.SelectedIndex Selector.SelectedIndex Selector.SelectedIndex Property

Definition

Gets or sets the index of the selected item.

public : int SelectedIndex { get; set; }
int32_t SelectedIndex();

void SelectedIndex(int32_t selectedindex);
public int SelectedIndex { get; set; }
Public ReadWrite Property SelectedIndex As int
<selector SelectedIndex="int" .../>

Property Value

int int

The index of the selected item. The default is -1, which indicates that no item is selected.

Remarks

Some controls that are derived from Selector, like ListBox, ListView, and GridView, also support multi-selection. When multi-selection is enabled in those controls, use their SelectedItems property to get the selected item collection.

See Also