ListView.ListViewItemCollection.IList.Insert(Int32, Object) 메서드

정의

컬렉션의 지정된 인덱스에 개체를 삽입합니다.

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

매개 변수

index
Int32

항목이 삽입되는 0부터 시작하는 인덱스 위치입니다.

item
Object

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

구현

예외

인덱스 매개 변수가 0보다 작거나 CountListView.ListViewItemCollection 속성 값보다 큰 경우

설명

매개 변수는 item 모든 형식일 수 있습니다. 이ListViewItemitem .에 추가ListView.ListViewItemCollection됩니다. 다른 형식인 경우 item 메서드의 item문자열을 포함하는 새 ListViewItem 형식이 ToString 만들어집니다.

적용 대상