DataGridViewComboBoxCell.Paint Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Disegna l'oggetto DataGridViewComboBoxCell 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
- clipBounds
- Rectangle
Oggetto Rectangle che rappresenta l'area dell'oggetto DataGridView da ridisegnare.
- 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.