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

true 表示要以 SelectionBackColorInheritedStyle 屬性的色彩繪製資料列行首,false 則表示要以 BackColor 屬性的 RowHeadersDefaultCellStyle 繪製資料列行首。

例外狀況

RowIndex 小於零或大於 DataGridView 控制項的資料列數減一。

另請參閱

適用於

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 小於零或大於 DataGridView 控制項的資料列數減一。

另請參閱

適用於