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

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

반품

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

예외

columnIndex 가 열 수에서 1을 뺀 값까지의 유효한 범위가 0이 아닙니다.

적용 대상

추가 정보