DataGridViewRowPrePaintEventArgs.PaintHeader 메서드

정의

현재 행의 행 머리글을 그립니다.

오버로드

PaintHeader(Boolean)

현재 DataGridViewRow의 전체 행 머리글을 그립니다.

PaintHeader(DataGridViewPaintParts)

현재 행에 대한 행 머리글의 지정된 부분을 그립니다.

PaintHeader(Boolean)

현재 DataGridViewRow의 전체 행 머리글을 그립니다.

public:
 void PaintHeader(bool paintSelectionBackground);
public void PaintHeader (bool paintSelectionBackground);
member this.PaintHeader : bool -> unit
Public Sub PaintHeader (paintSelectionBackground As Boolean)

매개 변수

paintSelectionBackground
Boolean

SelectionBackColorInheritedStyle 속성 색으로 행 머리글을 그리려면 true이고, BackColor 속성의 RowHeadersDefaultCellStyle로 행 머리글을 그리려면 false입니다.

예외

RowIndex가 0보다 작거나 DataGridView 컨트롤의 행 수에서 1을 뺀 값보다 큰 경우

설명

PaintHeader 및 해당 셀의 내용을 직접 그릴 DataGridViewRow 때 메서드를 사용합니다. 전체 행과 해당 셀의 내용을 수동으로 그리는 경우 속성을 로 true설정합니다Handled. 가 Handled 이면 trueCellPaintingRowPostPaint 이벤트가 발생하지 않습니다.

추가 정보

적용 대상

PaintHeader(DataGridViewPaintParts)

현재 행에 대한 행 머리글의 지정된 부분을 그립니다.

public:
 void PaintHeader(System::Windows::Forms::DataGridViewPaintParts paintParts);
public void PaintHeader (System.Windows.Forms.DataGridViewPaintParts paintParts);
member this.PaintHeader : System.Windows.Forms.DataGridViewPaintParts -> unit
Public Sub PaintHeader (paintParts As DataGridViewPaintParts)

매개 변수

paintParts
DataGridViewPaintParts

그릴 부분을 지정하는 DataGridViewPaintParts 값의 비트 조합입니다.

예외

RowIndex가 0보다 작거나 DataGridView 컨트롤의 행 수에서 1을 뺀 값보다 큰 경우

추가 정보

적용 대상