SelectedIndex Property (ListBox)

Class

ListBox.

Action

Gets or sets the index of the first selected item. The value is zero-based.

Syntax

C#
protected Integer SelectedIndex { get; set; }
VB
'Declaration
Protected ReadWrite Property SelectedIndex As Integer

Access

Read and write.