DataGridView.GetColumnDisplayRectangle(Int32, Boolean) 메서드

정의

열 인덱스에 의해 확인된 대로, 열에 대한 표시 영역을 나타내는 사각형을 반환합니다.

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

매개 변수

columnIndex
Int32

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

cutOverflow
Boolean

DataGridView 범위에서 표시되는 열 사각형을 반환하려면 true이고, 전체 열 사각형을 반환하려면 false입니다.

반환

Rectangle

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

예외

columnIndex가 0부터 열 수-1 사이에 속하지 않습니다.

적용 대상

추가 정보