Condividi tramite


DataGridViewButtonCell.Paint Metodo

Definizione

Disegna l'oggetto DataGridViewButtonCell corrente.

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)

Parametri

graphics
Graphics

Oggetto Graphics utilizzato per disegnare la cella.

clipBounds
Rectangle

Oggetto Rectangle che rappresenta l'area dell'oggetto DataGridView da ridisegnare.

cellBounds
Rectangle

Oggetto Rectangle contenente i limiti della cella da disegnare.

rowIndex
Int32

Indice di riga della cella da disegnare.

elementState
DataGridViewElementStates

Combinazione bit per bit di valori DataGridViewElementStates che specifica lo stato della cella.

value
Object

Dati della cella da disegnare.

formattedValue
Object

Dati formattati della cella da disegnare.

errorText
String

Messaggio di errore associato alla cella.

cellStyle
DataGridViewCellStyle

Oggetto DataGridViewCellStyle contenente le informazioni di formattazione e stile relative alla cella.

advancedBorderStyle
DataGridViewAdvancedBorderStyle

Oggetto DataGridViewAdvancedBorderStyle contenente gli stili del bordo per la cella da disegnare.

paintParts
DataGridViewPaintParts

Combinazione bit per bit dei valori DataGridViewPaintParts che specifica quali parti della cella devono essere disegnate.

Si applica a