DataGridViewCellCollection.RemoveAt(Int32) 메서드

정의

지정한 인덱스에서 해당 셀을 제거합니다.

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

매개 변수

index
Int32

제거할 DataGridViewCell의 인덱스(0부터 시작)입니다.

예외

DataGridViewCellCollection을 소유하는 행이 이미 DataGridView 컨트롤에 속해 있는 경우

설명

포함하는 행 DataGridView 을 컨트롤에 추가하기 전에 이 메서드를 사용하여 컬렉션을 변경합니다. 컨트롤에 행을 추가하면 포함된 셀 수가 항상 컨트롤의 열 수와 일치하므로 이 메서드는 더 이상 유용하지 않습니다.

적용 대상

추가 정보