SelectedIndex Property (JList)

Class

JList.

Action

Gets the index of the selected list item. The value is zero-based.

Syntax

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

Access

Read only.

Examples

VB

Dim selectedIndex As Integer = colorsList.SelectedIndex