TableCellCollection.Insert(Int32, TableCell) 메서드

정의

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

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

매개 변수

index
Int32

삽입 item할 컬렉션의 위치를 지정하는 인덱스(0부터 시작)입니다.

item
TableCell

컬렉션에 삽입할 항목입니다.

구현

예외

0보다 작은 경우 index 발생합니다.

null일 때 item 발생합니다.

설명

이 컬렉션과 Count 같으면 Capacity 새 항목이 삽입되기 전에 컬렉션 용량이 자동으로 증가합니다. 컬렉션에 새 컬렉션 항목을 추가하려면 값 index 과 동일하게 설정합니다Count.

기존 컬렉션 항목에 대한 인덱스는 새로 삽입된 컬렉션 항목에 맞게 조정될 수 있습니다.

적용 대상