DataGridViewComboBoxCell.ObjectCollection.Insert(Int32, Object) 메서드

정의

항목을 컬렉션 내의 지정된 인덱스에 삽입합니다.

public:
 virtual void Insert(int index, System::Object ^ item);
public void Insert (int index, object item);
abstract member Insert : int * obj -> unit
override this.Insert : int * obj -> unit
Public Sub Insert (index As Integer, item As Object)

매개 변수

index
Int32

정렬되지 않은 DataGridViewComboBoxCell에서 item을 배치할 인덱스(0부터 시작)입니다.

item
Object

삽입할 항목을 나타내는 개체입니다.

구현

예외

item이(가) null인 경우

index가 0보다 작거나 컬렉션의 항목 수보다 큰 경우

셀의 DataSource 속성 값이 null이 아닌 경우

셀이 공유 행에 있는 경우

설명

이 값이 false``indexSorted 값이 삽입되는 item 위치를 나타냅니다. 이 true``indexSorted 무시되고 item 정렬 순서에 따라 결정되는 위치에 컬렉션에 배치됩니다.

적용 대상

추가 정보