DataGridViewCellCollection.IList.Insert(Int32, Object) 메서드

정의

지정된 위치의 컬렉션에 항목을 삽입합니다.

 virtual void System.Collections.IList.Insert(int index, System::Object ^ value) = System::Collections::IList::Insert;
void IList.Insert (int index, object value);
void IList.Insert (int index, object? value);
abstract member System.Collections.IList.Insert : int * obj -> unit
override this.System.Collections.IList.Insert : int * obj -> unit
Sub Insert (index As Integer, value As Object) Implements IList.Insert

매개 변수

index
Int32

값을 삽입할 인덱스(0부터 시작)입니다.

value
Object

IList.Insert(Int32, Object)에 삽입할 DataGridViewCell입니다.

구현

예외

value이(가) DataGridViewCell가 아닌 경우

DataGridViewCellCollection을 소유하는 행이 이미 DataGridView 컨트롤에 속해 있는 경우

또는

dataGridViewCell이 이미 DataGridViewRow에 속해 있는 경우

설명

행을 컨트롤에 추가하면 포함된 셀 수가 항상 컨트롤의 열 수와 일치하므로 이 메서드는 더 이상 유용하지 않습니다.

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

적용 대상

추가 정보