DesignerActionListCollection.Insert(Int32, DesignerActionList) 메서드

정의

제공된 DesignerActionList를 컬렉션의 지정된 위치에 삽입합니다.

public:
 void Insert(int index, System::ComponentModel::Design::DesignerActionList ^ value);
public void Insert (int index, System.ComponentModel.Design.DesignerActionList value);
public void Insert (int index, System.ComponentModel.Design.DesignerActionList? value);
member this.Insert : int * System.ComponentModel.Design.DesignerActionList -> unit
Public Sub Insert (index As Integer, value As DesignerActionList)

매개 변수

index
Int32

value을 삽입해야 하는 인덱스(0부터 시작)입니다.

value
DesignerActionList

컬렉션에 삽입할 DesignerActionList입니다.

예외

index가 0보다 작거나 현재 컬렉션의 요소 수보다 큰 경우

설명

매개 변수가 index 속성 값 Count 과 같으면 새 요소가 컬렉션의 끝에 추가됩니다.

내부적으로 클래스는 DesignerActionListCollection 를 사용하여 System.Collections.ArrayList 해당 개체 컬렉션을 DesignerActionList 포함합니다. 목록은 연속 요소를 유지하므로 삽입 지점 뒤에 있는 요소는 새 요소를 수용하기 위해 아래로 이동합니다. 이렇게 다시 정렬하면 삽입 지점 뒤에 있는 요소의 인덱스가 변경됩니다.

적용 대상

추가 정보