DataGridViewRowPostPaintEventArgs.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 プロパティの色で行ヘッダーを描画する場合は trueBackColor プロパティの RowHeadersDefaultCellStyle で行ヘッダーを描画する場合は false

例外

RowIndex が 0 未満か、DataGridView コントロールの行数から 1 を引いた値を上回っています。

こちらもご覧ください

適用対象

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 を引いた値を上回っています。

こちらもご覧ください

適用対象