DataGridView.GetCellDisplayRectangle(Int32, Int32, Boolean) 메서드

정의

셀의 표시 영역을 나타내는 사각형을 반환합니다.

public:
 System::Drawing::Rectangle GetCellDisplayRectangle(int columnIndex, int rowIndex, bool cutOverflow);
public System.Drawing.Rectangle GetCellDisplayRectangle (int columnIndex, int rowIndex, bool cutOverflow);
member this.GetCellDisplayRectangle : int * int * bool -> System.Drawing.Rectangle
Public Function GetCellDisplayRectangle (columnIndex As Integer, rowIndex As Integer, cutOverflow As Boolean) As Rectangle

매개 변수

columnIndex
Int32

원하는 셀의 열 인덱스입니다.

rowIndex
Int32

원하는 셀의 행 인덱스입니다.

cutOverflow
Boolean

셀의 표시된 부분만을 반환하려면 true이고 전체 셀 범위를 반환하려면 false입니다.

반환

Rectangle

셀의 표시 사각형을 나타내는 Rectangle입니다.

예외

columnIndex가 -1보다 작거나 컨트롤의 열 수에서 1을 뺀 값보다 큰 경우

또는 rowIndex가 -1보다 작거나 컨트롤의 행 수에서 1을 뺀 값보다 큰 경우

설명

이 메서드는 전체 셀 범위 또는 표시된 부분만 반환합니다. 셀 내용의 범위만 얻으려면 셀 ContentBounds 속성을 사용합니다.

적용 대상

추가 정보