ToolStripItemCollection.RemoveAt(Int32) 메서드

정의

컬렉션의 지정된 인덱스에서 항목을 제거합니다.

public:
 void RemoveAt(int index);
public void RemoveAt (int index);
member this.RemoveAt : int -> unit
Public Sub RemoveAt (index As Integer)

매개 변수

index
Int32

제거할 ToolStripItem의 인덱스 값입니다.

예외

ToolStripItemCollection이 읽기 전용인 경우

설명

경우는 ToolStripItem 에서 제거 되는 ToolStripItemCollection, 모든 후속 컨트롤 컬렉션에서 한 칸 위로 이동 됩니다.

제거할 수도 있습니다는 ToolStripItem 를 사용 하 여 합니다 Remove 메서드 또는 모든 제어를 사용 하 여 제거를 Clear 메서드.

새로 추가 하려면 ToolStripItem 컬렉션에 개체를 사용 합니다 Add 또는 AddRange 메서드.

적용 대상