DataGridViewButtonCell.GetContentBounds 메서드

정의

지정한 셀 스타일과 셀 스타일을 사용하여 계산되는 셀의 콘텐츠 영역을 둘러싸는 경계 사각형을 Graphics 반환합니다.

protected:
 override System::Drawing::Rectangle GetContentBounds(System::Drawing::Graphics ^ graphics, System::Windows::Forms::DataGridViewCellStyle ^ cellStyle, int rowIndex);
protected override System.Drawing.Rectangle GetContentBounds(System.Drawing.Graphics graphics, System.Windows.Forms.DataGridViewCellStyle cellStyle, int rowIndex);
override this.GetContentBounds : System.Drawing.Graphics * System.Windows.Forms.DataGridViewCellStyle * int -> System.Drawing.Rectangle
Protected Overrides Function GetContentBounds (graphics As Graphics, cellStyle As DataGridViewCellStyle, rowIndex As Integer) As Rectangle

매개 변수

graphics
Graphics

셀의 그래픽 컨텍스트입니다.

cellStyle
DataGridViewCellStyle

DataGridViewCellStyle 셀에 적용할 값입니다.

rowIndex
Int32

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

반품

Rectangle 셀의 내용을 경계로 하는 값입니다.

적용 대상

추가 정보