DataGridViewRowHeaderCell.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

셀 내용의 경계를 지정하는 Rectangle입니다.

적용 대상

추가 정보