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

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

속성 값

Int32

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

예외

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

설명

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

적용 대상