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

Definición

Pinta el objeto DataGridViewImageCell actual.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

Parámetros

graphics
Graphics Graphics Graphics

Clase Graphics usada para dibujar la celda.The Graphics used to paint the cell.

clipBounds
Rectangle Rectangle Rectangle

Rectangle que representa el área del control DataGridView que es necesario volver a dibujar.A Rectangle that represents the area of the DataGridView that needs to be repainted.

cellBounds
Rectangle Rectangle Rectangle

Objeto Rectangle que contiene los límites de la celda que se está dibujando.A Rectangle that contains the bounds of the cell that is being painted.

rowIndex
Int32 Int32 Int32

Índice de fila de la celda que se está dibujando.The row index of the cell that is being painted.

elementState
DataGridViewElementStates DataGridViewElementStates DataGridViewElementStates

Combinación bit a bit de valores de DataGridViewElementStates que especifica el estado de la celda.A bitwise combination of DataGridViewElementStates values that specifies the state of the cell.

value
Object Object Object

Datos de la celda que se está dibujando.The data of the cell that is being painted.

formattedValue
Object Object Object

Datos con formato de la celda que se está dibujando.The formatted data of the cell that is being painted.

errorText
String String String

Mensaje de error asociado a la celda.An error message that is associated with the cell.

cellStyle
DataGridViewCellStyle DataGridViewCellStyle DataGridViewCellStyle

DataGridViewCellStyle que contiene información de estilo y formato sobre la celda.A DataGridViewCellStyle that contains formatting and style information about the cell.

advancedBorderStyle
DataGridViewAdvancedBorderStyle DataGridViewAdvancedBorderStyle DataGridViewAdvancedBorderStyle

DataGridViewAdvancedBorderStyle que contiene los estilos de borde para la celda que se está dibujando.A DataGridViewAdvancedBorderStyle that contains border styles for the cell that is being painted.

paintParts
DataGridViewPaintParts DataGridViewPaintParts DataGridViewPaintParts

Combinación bit a bit de los valores DataGridViewPaintParts que especifica las partes de la celda que es necesario volver a dibujar.A bitwise combination of the DataGridViewPaintParts values that specifies which parts of the cell need to be painted.

Se aplica a