다음을 통해 공유


DataGridViewCell.GetValue(Int32) 메서드

정의

셀의 값을 가져옵니다.

protected:
 virtual System::Object ^ GetValue(int rowIndex);
protected virtual object GetValue(int rowIndex);
protected virtual object? GetValue(int rowIndex);
abstract member GetValue : int -> obj
override this.GetValue : int -> obj
Protected Overridable Function GetValue (rowIndex As Integer) As Object

매개 변수

rowIndex
Int32

셀의 부모 행 인덱스입니다.

반환

에 포함된 값입니다 DataGridViewCell.

예외

셀의 DataGridView 속성 값이 nullrowIndex 0보다 작거나 부모 DataGridView행 수보다 크거나 같은 경우

셀의 DataGridView 속성 값이 아니 null 고 속성 값 ColumnIndex 이 0보다 작으므로 셀이 행 머리글 셀임을 나타냅니다.

설명

GetValue 검색하는 데 사용한 행 인덱스 메서드를 전달합니다 DataGridViewCell. 매개 변수에 RowIndex 대한 rowIndex 속성을 사용하지 마세요. 행이 공유 RowIndex 되는 경우 -1이며 유효한 값 rowIndex이 아닙니다.

적용 대상

추가 정보