DataGridViewRow.PaintHeader Metoda

Definice

Vykreslí buňku záhlaví aktuálního řádku.

protected public:
 virtual void PaintHeader(System::Drawing::Graphics ^ graphics, System::Drawing::Rectangle clipBounds, System::Drawing::Rectangle rowBounds, int rowIndex, System::Windows::Forms::DataGridViewElementStates rowState, bool isFirstDisplayedRow, bool isLastVisibleRow, System::Windows::Forms::DataGridViewPaintParts paintParts);
protected internal virtual void PaintHeader (System.Drawing.Graphics graphics, System.Drawing.Rectangle clipBounds, System.Drawing.Rectangle rowBounds, int rowIndex, System.Windows.Forms.DataGridViewElementStates rowState, bool isFirstDisplayedRow, bool isLastVisibleRow, System.Windows.Forms.DataGridViewPaintParts paintParts);
abstract member PaintHeader : System.Drawing.Graphics * System.Drawing.Rectangle * System.Drawing.Rectangle * int * System.Windows.Forms.DataGridViewElementStates * bool * bool * System.Windows.Forms.DataGridViewPaintParts -> unit
override this.PaintHeader : System.Drawing.Graphics * System.Drawing.Rectangle * System.Drawing.Rectangle * int * System.Windows.Forms.DataGridViewElementStates * bool * bool * System.Windows.Forms.DataGridViewPaintParts -> unit
Protected Friend Overridable Sub PaintHeader (graphics As Graphics, clipBounds As Rectangle, rowBounds As Rectangle, rowIndex As Integer, rowState As DataGridViewElementStates, isFirstDisplayedRow As Boolean, isLastVisibleRow As Boolean, paintParts As DataGridViewPaintParts)

Parametry

graphics
Graphics

Slouží Graphics k malování .DataGridViewRow

clipBounds
Rectangle

A Rectangle , která představuje oblast DataGridView , která se má namalovat.

rowBounds
Rectangle

A Rectangle obsahující hranice malovaného objektu DataGridViewRow .

rowIndex
Int32

Index řádku malované buňky.

rowState
DataGridViewElementStates

Bitové kombinace DataGridViewElementStates hodnot, které určují stav řádku.

isFirstDisplayedRow
Boolean

truek označení, že aktuální řádek je prvním řádkem zobrazeným DataGridViewv . V opačném případě . false

isLastVisibleRow
Boolean

true k označení, že aktuální řádek je posledním řádkem v objektu DataGridView , který má vlastnost nastavenou Visible na true; v opačném případě false.

paintParts
DataGridViewPaintParts

Bitová kombinace DataGridViewPaintParts hodnot označujících části buněk, které se mají vykreslit.

Výjimky

Řádek nebyl přidán do DataGridView ovládacího prvku.

paintParts v neplatné bitové kombinaci DataGridViewPaintParts hodnot.

Poznámky

Ovládací DataGridView prvek volá tuto metodu k vykreslení záhlaví řádku s výjimkou případu, kdy obslužná rutina DataGridView.RowPrePaint události nastaví HandledEventArgs.Handled vlastnost na true. Další informace naleznete v tématu Paint.

Platí pro

Viz také