DataGridViewCell.GetErrorIconBounds 메서드

정의

셀의 오류 아이콘이 표시되면 이 아이콘을 둘러싸는 경계 사각형을 반환합니다.

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

매개 변수

graphics
Graphics

셀에 대한 그래픽 컨텍스트입니다.

cellStyle
DataGridViewCellStyle

셀에 적용할 DataGridViewCellStyle입니다.

rowIndex
Int32

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

반환

셀의 오류 아이콘이 표시되면 이 아이콘을 바인딩하는 Rectangle이고, 표시되지 않으면 Empty입니다.

설명

이 메서드가 호출 될 때 셀의 오류 아이콘 영역의 크기를 동적으로 계산 됩니다. 기본 클래스 구현은 항상 를 반환합니다 Rectangle.Empty.

이 메서드는 경우 호출 하는 내부적으로 ErrorIconBounds 속성이 읽기.

적용 대상

추가 정보