DataGridViewRow.DrawFocus 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í obdélník fokusu kolem zadaných hranic.
protected public:
virtual void DrawFocus(System::Drawing::Graphics ^ graphics, System::Drawing::Rectangle clipBounds, System::Drawing::Rectangle bounds, int rowIndex, System::Windows::Forms::DataGridViewElementStates rowState, System::Windows::Forms::DataGridViewCellStyle ^ cellStyle, bool cellsPaintSelectionBackground);
protected internal virtual void DrawFocus(System.Drawing.Graphics graphics, System.Drawing.Rectangle clipBounds, System.Drawing.Rectangle bounds, int rowIndex, System.Windows.Forms.DataGridViewElementStates rowState, System.Windows.Forms.DataGridViewCellStyle cellStyle, bool cellsPaintSelectionBackground);
abstract member DrawFocus : System.Drawing.Graphics * System.Drawing.Rectangle * System.Drawing.Rectangle * int * System.Windows.Forms.DataGridViewElementStates * System.Windows.Forms.DataGridViewCellStyle * bool -> unit
override this.DrawFocus : System.Drawing.Graphics * System.Drawing.Rectangle * System.Drawing.Rectangle * int * System.Windows.Forms.DataGridViewElementStates * System.Windows.Forms.DataGridViewCellStyle * bool -> unit
Protected Friend Overridable Sub DrawFocus (graphics As Graphics, clipBounds As Rectangle, bounds As Rectangle, rowIndex As Integer, rowState As DataGridViewElementStates, cellStyle As DataGridViewCellStyle, cellsPaintSelectionBackground As Boolean)
Parametry
- graphics
- Graphics
Použité Graphics k malování DataGridViewRow.
- clipBounds
- Rectangle
A Rectangle , který představuje oblast DataGridView , kterou je potřeba malovat.
- bounds
- 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.
- cellStyle
- DataGridViewCellStyle
Použitý DataGridViewCellStyle k vykreslení obdélníku fokusu.
- cellsPaintSelectionBackground
- Boolean
true
SelectionBackColor použít vlastnost cellStyle jako barvu obdélníku fokusu; false použít BackColor vlastnost cellStyle jako barvu obdélníku fokusu.
Výjimky
Řádek nebyl přidán do DataGridView ovládacího prvku.
Poznámky
Parametr rowIndex není použit v implementaci DrawFocus základní třídy metody, ačkoli lze použít při přepsání této metody v odvozené třídě.