ListViewItem.ListViewSubItemCollection.Insert 메서드

정의

지정된 인덱스의 컬렉션에 하위 사이트를 삽입합니다.

public:
 void Insert(int index, System::Windows::Forms::ListViewItem::ListViewSubItem ^ item);
public void Insert(int index, System.Windows.Forms.ListViewItem.ListViewSubItem item);
member this.Insert : int * System.Windows.Forms.ListViewItem.ListViewSubItem -> unit
Public Sub Insert (index As Integer, item As ListViewItem.ListViewSubItem)

매개 변수

index
Int32

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

item
ListViewItem.ListViewSubItem

ListViewItem.ListViewSubItem 컬렉션에 삽입할 하위 항목의 표시입니다.

예외

설명

이 메서드를 사용하면 하위 항목을 .의 특정 위치에 삽입할 수 있습니다 ListViewItem.ListViewSubItemCollection. 특정 위치를 지정하지 않고 하위 항목을 추가하려면 메서드를 Add 사용합니다. 컬렉션에 하위 항목 배열을 추가하려면 이 메서드를 AddRange 사용합니다. 하위 항목의 기존 컬렉션에 새 하위 항목을 삽입하려는 경우 이 메서드를 사용할 수 있습니다.

적용 대상

추가 정보