DataGridViewImageCell.Paint(Graphics, Rectangle, Rectangle, Int32, DataGridViewElementStates, Object, Object, String, DataGridViewCellStyle, DataGridViewAdvancedBorderStyle, DataGridViewPaintParts) Metodo

Definizione

Disegna l'oggetto DataGridViewImageCell corrente.Paints the current DataGridViewImageCell.

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);
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.The Graphics used to paint the cell.

clipBounds
Rectangle

Oggetto Rectangle che rappresenta l'area dell'oggetto DataGridView da ridisegnare.A Rectangle that represents the area of the DataGridView that needs to be repainted.

cellBounds
Rectangle

Oggetto Rectangle contenente i limiti della cella da disegnare.A Rectangle that contains the bounds of the cell that is being painted.

rowIndex
Int32

Indice di riga della cella da disegnare.The row index of the cell that is being painted.

elementState
DataGridViewElementStates

Combinazione bit per bit di valori DataGridViewElementStates che specifica lo stato della cella.A bitwise combination of DataGridViewElementStates values that specifies the state of the cell.

value
Object

Dati della cella da disegnare.The data of the cell that is being painted.

formattedValue
Object

Dati formattati della cella da disegnare.The formatted data of the cell that is being painted.

errorText
String

Messaggio di errore associato alla cella.An error message that is associated with the cell.

cellStyle
DataGridViewCellStyle

Oggetto DataGridViewCellStyle contenente le informazioni di formattazione e stile relative alla cella.A DataGridViewCellStyle that contains formatting and style information about the cell.

advancedBorderStyle
DataGridViewAdvancedBorderStyle

Oggetto DataGridViewAdvancedBorderStyle contenente gli stili del bordo per la cella da disegnare.A DataGridViewAdvancedBorderStyle that contains border styles for the cell that is being painted.

paintParts
DataGridViewPaintParts

Combinazione bit per bit dei valori DataGridViewPaintParts che specifica quali parti della cella devono essere disegnate.A bitwise combination of the DataGridViewPaintParts values that specifies which parts of the cell need to be painted.

Si applica a