DataGridViewTextBoxCell.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 corrente DataGridViewCell.
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);
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)
Parametri
- graphics
- Graphics
Oggetto Graphics utilizzato per disegnare l'oggetto DataGridViewCell.
- clipBounds
- Rectangle
Oggetto Rectangle che rappresenta l'area dell'oggetto DataGridView che deve essere ridisegnato.
- cellBounds
- Rectangle
Oggetto Rectangle contenente i limiti dell'oggetto DataGridViewCell da disegnare.
- rowIndex
- Int32
Indice di riga della cella da disegnare.
- cellState
- DataGridViewElementStates
Combinazione bit per bit di DataGridViewElementStates valori che specifica lo stato della cella.
- value
- Object
Dati dell'oggetto DataGridViewCell da disegnare.
- formattedValue
- Object
Dati formattati dell'oggetto DataGridViewCell da disegnare.
- errorText
- String
Messaggio di errore associato alla cella.
- cellStyle
- DataGridViewCellStyle
Oggetto DataGridViewCellStyle che contiene informazioni di formattazione e stile sulla cella.
- advancedBorderStyle
- DataGridViewAdvancedBorderStyle
Oggetto DataGridViewAdvancedBorderStyle che contiene gli stili di bordo per la cella da disegnare.
- paintParts
- DataGridViewPaintParts
Combinazione bit per bit dei DataGridViewPaintParts valori che specifica quali parti della cella devono essere disegnate.