DataGridViewRow.PaintHeader Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Nakreslí 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
Použité Graphics k malování DataGridViewRow.
- clipBounds
- Rectangle
A Rectangle , který představuje oblast DataGridView , kterou je potřeba malovat.
- rowBounds
- Rectangle
A Rectangle , který obsahuje hranice DataGridViewRow , které jsou malovány.
- rowIndex
- Int32
Index řádku buňky, která se maluje.
- rowState
- DataGridViewElementStates
Bitová kombinace DataGridViewElementStates hodnot, která určuje stav řádku.
- isFirstDisplayedRow
- Boolean
true chcete-li označit, že aktuální řádek je prvním řádkem zobrazeným v objektu DataGridView; v opačném případě false.
- isLastVisibleRow
- Boolean
truechcete-li označit, že aktuální řádek je posledním řádkem v objektuDataGridView, který má vlastnost nastavenou Visible na true; jinak . false
- paintParts
- DataGridViewPaintParts
Bitové kombinace DataGridViewPaintParts hodnot označujících části buněk, které se mají nakreslit.
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 malování záhlaví řádku s výjimkou, kdy obslužná rutina pro DataGridView.RowPrePaint událost nastaví HandledEventArgs.Handled vlastnost na true. Další informace najdete na webu Paint.