DataGridViewButtonCell.Paint Méthode

Définition

Peint le courant DataGridViewButtonCell.

protected:
 override void Paint(System::Drawing::Graphics ^ graphics, System::Drawing::Rectangle clipBounds, System::Drawing::Rectangle cellBounds, int rowIndex, System::Windows::Forms::DataGridViewElementStates elementState, 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 elementState, object value, object formattedValue, 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 elementState, 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, elementState As DataGridViewElementStates, value As Object, formattedValue As Object, errorText As String, cellStyle As DataGridViewCellStyle, advancedBorderStyle As DataGridViewAdvancedBorderStyle, paintParts As DataGridViewPaintParts)

Paramètres

graphics
Graphics

Utilisé Graphics pour peindre la cellule.

clipBounds
Rectangle

Qui Rectangle représente la zone de celle DataGridView qui doit être repeinte.

cellBounds
Rectangle

Qui Rectangle contient les limites de la cellule en cours de peinture.

rowIndex
Int32

Index de ligne de la cellule en cours de peinture.

elementState
DataGridViewElementStates

Combinaison de valeurs au niveau du DataGridViewElementStates bit qui spécifie l’état de la cellule.

value
Object

Données de la cellule en cours de peinture.

formattedValue
Object

Données mises en forme de la cellule en cours de peinture.

errorText
String

Message d’erreur associé à la cellule.

cellStyle
DataGridViewCellStyle

Qui DataGridViewCellStyle contient des informations de mise en forme et de style sur la cellule.

advancedBorderStyle
DataGridViewAdvancedBorderStyle

Qui DataGridViewAdvancedBorderStyle contient des styles de bordure pour la cellule en cours de peinture.

paintParts
DataGridViewPaintParts

Combinaison au niveau du bit des DataGridViewPaintParts valeurs qui spécifient quelles parties de la cellule doivent être peintes.

S’applique à