DataGridViewCellCollection.IndexOf(DataGridViewCell) 메서드

정의

지정된 셀의 인덱스를 반환합니다.

public:
 int IndexOf(System::Windows::Forms::DataGridViewCell ^ dataGridViewCell);
public int IndexOf (System.Windows.Forms.DataGridViewCell dataGridViewCell);
member this.IndexOf : System.Windows.Forms.DataGridViewCell -> int
Public Function IndexOf (dataGridViewCell As DataGridViewCell) As Integer

매개 변수

dataGridViewCell
DataGridViewCell

컬렉션에서 찾을 셀입니다.

반환

Int32

dataGridViewCell 매개 변수가 컬렉션에 있으면 이 항목 값의 인덱스(0부터 시작)이고, 그렇지 않으면 -1입니다.

적용 대상

추가 정보