DataGridViewRow.DrawFocus 메서드

정의

지정된 범위 주위에 포커스 영역을 그립니다.

protected public:
 virtual void DrawFocus(System::Drawing::Graphics ^ graphics, System::Drawing::Rectangle clipBounds, System::Drawing::Rectangle bounds, int rowIndex, System::Windows::Forms::DataGridViewElementStates rowState, System::Windows::Forms::DataGridViewCellStyle ^ cellStyle, bool cellsPaintSelectionBackground);
protected internal virtual void DrawFocus (System.Drawing.Graphics graphics, System.Drawing.Rectangle clipBounds, System.Drawing.Rectangle bounds, int rowIndex, System.Windows.Forms.DataGridViewElementStates rowState, System.Windows.Forms.DataGridViewCellStyle cellStyle, bool cellsPaintSelectionBackground);
abstract member DrawFocus : System.Drawing.Graphics * System.Drawing.Rectangle * System.Drawing.Rectangle * int * System.Windows.Forms.DataGridViewElementStates * System.Windows.Forms.DataGridViewCellStyle * bool -> unit
override this.DrawFocus : System.Drawing.Graphics * System.Drawing.Rectangle * System.Drawing.Rectangle * int * System.Windows.Forms.DataGridViewElementStates * System.Windows.Forms.DataGridViewCellStyle * bool -> unit
Protected Friend Overridable Sub DrawFocus (graphics As Graphics, clipBounds As Rectangle, bounds As Rectangle, rowIndex As Integer, rowState As DataGridViewElementStates, cellStyle As DataGridViewCellStyle, cellsPaintSelectionBackground As Boolean)

매개 변수

graphics
Graphics

DataGridViewRow을 그리는 데 사용되는 Graphics입니다.

clipBounds
Rectangle

그려야 하는 Rectangle 의 영역을 나타내는 DataGridView 입니다.

bounds
Rectangle

그리고 있는 DataGridViewRow의 범위를 포함하는 Rectangle입니다.

rowIndex
Int32

그리고 있는 셀의 행 인덱스입니다.

rowState
DataGridViewElementStates

행의 상태를 지정하는 DataGridViewElementStates 값의 비트 조합입니다.

cellStyle
DataGridViewCellStyle

포커스 영역을 그리는 데 사용되는 DataGridViewCellStyle입니다.

cellsPaintSelectionBackground
Boolean

cellStyleSelectionBackColor 속성을 포커스 영역의 색으로 사용하려면 true이고, cellStyleBackColor 속성을 포커스 영역의 색으로 사용하려면 false입니다.

예외

행이 DataGridView 컨트롤에 추가되지 않은 경우

graphics이(가) null인 경우

또는 cellStyle이(가) null인 경우

설명

rowIndex 매개 변수는 메서드의 기본 클래스 구현에서 사용되지 않지만 파생 클래스에서 이 메서드를 재정의 DrawFocus 할 때 사용할 수 있습니다.

적용 대상

추가 정보