DataGridViewCellCollection.IList.Item[Int32] 속성

정의

지정한 인덱스에 있는 요소를 가져오거나 설정합니다.

property System::Object ^ System::Collections::IList::Item[int] { System::Object ^ get(int index); void set(int index, System::Object ^ value); };
object System.Collections.IList.Item[int index] { get; set; }
member this.System.Collections.IList.Item(int) : obj with get, set
 Property Item(index As Integer) As Object Implements IList.Item

매개 변수

index
Int32

가져오거나 설정할 항목의 인덱스입니다.

속성 값

Object

지정한 인덱스에 있는 DataGridViewCell입니다.

구현

예외

이 속성을 설정할 때 지정된 값이 DataGridViewCell가 아닌 경우

이 속성을 설정할 때 지정된 값이 null입니다.

이 속성을 설정할 때 지정된 셀이 이미 DataGridView 컨트롤에 속해 있는 경우

또는 이 속성을 설정할 때 지정된 셀이 이미 DataGridViewRow에 속해 있는 경우

index 가 0보다 작습니다.

또는 index가 컬렉션의 셀 수보다 크거나 같은 경우

설명

이 멤버는 명시적 인터페이스 멤버 구현이며, DataGridViewCellCollection 인스턴스가 IList 인터페이스로 캐스팅된 경우에만 사용할 수 있습니다.

적용 대상

추가 정보