Partilhar via


DataGridViewLinkCell.Paint Método

Definição

Pinta o DataGridViewCell atual.

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)

Parâmetros

graphics
Graphics

O Graphics usado para pintar o DataGridViewCell.

clipBounds
Rectangle

Um Rectangle que representa a área do DataGridView que precisa ser pintada novamente.

cellBounds
Rectangle

Um Rectangle que contém os limites do DataGridViewCell que está sendo pintado.

rowIndex
Int32

O índice de linha da célula que está sendo pintada.

cellState
DataGridViewElementStates

Uma combinação bit a bit de valores DataGridViewElementStates que especifica o estado da célula.

value
Object

Os dados do DataGridViewCell que está sendo pintado.

formattedValue
Object

Os dados formatados do DataGridViewCell que está sendo pintado.

errorText
String

Uma mensagem de erro associada à célula.

cellStyle
DataGridViewCellStyle

Um DataGridViewCellStyle que contém informações de formatação e estilo sobre a célula.

advancedBorderStyle
DataGridViewAdvancedBorderStyle

Um DataGridViewAdvancedBorderStyle que contém estilos de borda para a célula que está sendo pintada.

paintParts
DataGridViewPaintParts

Uma combinação bit a bit dos valores DataGridViewPaintParts que especificam quais partes da célula precisam ser pintadas.

Aplica-se a

Confira também