DataGridViewRowHeaderCell.Paint(Graphics, Rectangle, Rectangle, Int32, DataGridViewElementStates, Object, Object, String, DataGridViewCellStyle, DataGridViewAdvancedBorderStyle, DataGridViewPaintParts) Méthode

Définition

Peint le DataGridViewRowHeaderCell actif.Paints the current DataGridViewRowHeaderCell.

protected:
 override void Paint(System::Drawing::Graphics ^ graphics, System::Drawing::Rectangle clipBounds, System::Drawing::Rectangle cellBounds, int rowIndex, System::Windows::Forms::DataGridViewElementStates cellState, System::Object ^ value, System::Object ^ formattedValue, System::String ^ errorText, System::Windows::Forms::DataGridViewCellStyle ^ cellStyle, System::Windows::Forms::DataGridViewAdvancedBorderStyle ^ advancedBorderStyle, System::Windows::Forms::DataGridViewPaintParts paintParts);
protected override void Paint (System.Drawing.Graphics graphics, System.Drawing.Rectangle clipBounds, System.Drawing.Rectangle cellBounds, int rowIndex, System.Windows.Forms.DataGridViewElementStates cellState, object value, object formattedValue, string errorText, System.Windows.Forms.DataGridViewCellStyle cellStyle, System.Windows.Forms.DataGridViewAdvancedBorderStyle advancedBorderStyle, System.Windows.Forms.DataGridViewPaintParts paintParts);
override this.Paint : System.Drawing.Graphics * System.Drawing.Rectangle * System.Drawing.Rectangle * int * System.Windows.Forms.DataGridViewElementStates * obj * obj * string * System.Windows.Forms.DataGridViewCellStyle * System.Windows.Forms.DataGridViewAdvancedBorderStyle * System.Windows.Forms.DataGridViewPaintParts -> unit
Protected Overrides Sub Paint (graphics As Graphics, clipBounds As Rectangle, cellBounds As Rectangle, rowIndex As Integer, cellState As DataGridViewElementStates, value As Object, formattedValue As Object, errorText As String, cellStyle As DataGridViewCellStyle, advancedBorderStyle As DataGridViewAdvancedBorderStyle, paintParts As DataGridViewPaintParts)

Paramètres

graphics
Graphics

Graphics utilisé pour peindre DataGridViewCell.The Graphics used to paint the DataGridViewCell.

clipBounds
Rectangle

Rectangle qui représente la zone de DataGridView à repeindre.A Rectangle that represents the area of the DataGridView that needs to be repainted.

cellBounds
Rectangle

Rectangle qui contient les limites de DataGridViewCell qui est en train d’être peint.A Rectangle that contains the bounds of the DataGridViewCell that is being painted.

rowIndex
Int32

Index de ligne de la cellule qui est en train d'être peinte.The row index of the cell that is being painted.

cellState
DataGridViewElementStates

Combinaison au niveau du bit de valeurs DataGridViewElementStates qui spécifie l’état de la cellule.A bitwise combination of DataGridViewElementStates values that specifies the state of the cell.

value
Object

Données du DataGridViewCell qui est en train d’être peint.The data of the DataGridViewCell that is being painted.

formattedValue
Object

Données mises en forme du DataGridViewCell qui est en train d’être peint.The formatted data of the DataGridViewCell that is being painted.

errorText
String

Message d'erreur associé à la cellule.An error message that is associated with the cell.

cellStyle
DataGridViewCellStyle

DataGridViewCellStyle qui contient des informations sur la mise en forme et le style de la cellule.A DataGridViewCellStyle that contains formatting and style information about the cell.

advancedBorderStyle
DataGridViewAdvancedBorderStyle

DataGridViewAdvancedBorderStyle qui contient les styles de bordure de la cellule qui est en train d’être peinte.A DataGridViewAdvancedBorderStyle that contains border styles for the cell that is being painted.

paintParts
DataGridViewPaintParts

Combinaison au niveau du bit de valeurs DataGridViewPaintParts qui spécifie les parties de la cellule à repeindre.A bitwise combination of the DataGridViewPaintParts values that specifies which parts of the cell need to be painted.

S’applique à