Compartir a través de


DataGridViewTopLeftHeaderCell.Paint Método

Definición

Pinta el objeto DataGridViewTopLeftHeaderCell actual.

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);
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)

Parámetros

graphics
Graphics

Graphics que se usa para pintar DataGridViewCell.

clipBounds
Rectangle

Rectangle que representa el área de DataGridView que se debe volver a pintar.

cellBounds
Rectangle

Rectangle que contiene los límites de la celda DataGridViewCell que se está pintando.

rowIndex
Int32

Índice de fila de la celda que se está dibujando.

cellState
DataGridViewElementStates

Combinación bit a bit de valores DataGridViewElementStates que especifica el estado de la celda.

value
Object

Datos de la celda DataGridViewCell que se está pintando.

formattedValue
Object

Datos con formato de la celda DataGridViewCell que se está pintando.

errorText
String

Mensaje de error asociado a la celda.

cellStyle
DataGridViewCellStyle

Clase DataGridViewCellStyle que contiene información de estilo y formato sobre la celda.

advancedBorderStyle
DataGridViewAdvancedBorderStyle

DataGridViewAdvancedBorderStyle que contiene los estilos de borde para la celda que se está pintando.

paintParts
DataGridViewPaintParts

Combinación bit a bit de los valores DataGridViewPaintParts que especifica las partes de la celda que se deben pintar.

Se aplica a