DataGridViewButtonCell.GetValue(Int32) 메서드

정의

단추와 연결된 텍스트를 검색합니다.

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

매개 변수

rowIndex
Int32

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

반환

DataGridViewButtonCelltrue이면 소유하는 열의 Text 값 또는 UseColumnTextForButtonValue의 값입니다.

설명

이 메서드는 셀 값을 로컬로 저장하고 공유된 상태로 유지할 수 없는 공유 행의 셀 텍스트를 검색하는 데 유용합니다. 공유 행의 인덱스가 -1이므로 실제 행 인덱스를 전달해야 합니다. 행 공유에 대한 자세한 내용은 Windows Forms DataGridView 컨트롤의 크기를 조정하는 최선의 방법을 참조하세요.

적용 대상

추가 정보