ListBox.SelectedIndexCollection.Item[Int32] 속성

정의

이 컬렉션 내의 지정된 인덱스에서 인덱스 값을 가져옵니다.

public:
 property int default[int] { int get(int index); };
public int this[int index] { get; }
member this.Item(int) : int
Default Public ReadOnly Property Item(index As Integer) As Integer

매개 변수

index
Int32

가져올 컬렉션의 항목 인덱스입니다.

속성 값

지정된 위치에 저장된 인덱스 값 ListBox.ObjectCollection 입니다.

예외

index 매개 변수가 0보다 작거나 클래스의 Count 속성 ListBox.SelectedIndexCollection 값보다 크거나 같습니다.

설명

이 인덱서를 사용하면 .에서 ListBox.SelectedIndexCollection선택한 특정 인덱스를 가져올 수 있습니다. 컬렉션에 저장된 인덱스는 에서 선택한 항목을 ListBox.ObjectCollection나타내는 인덱 ListBoxListBox 스입니다.

적용 대상