DataGridViewLinkCell.Paint Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Pinta a 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)
Parâmetros
- graphics
- Graphics
O Graphics usado para pintar o DataGridViewCell.
- clipBounds
- Rectangle
A Rectangle que representa a área do DataGridView que precisa de ser repintada.
- cellBounds
- Rectangle
A Rectangle que contém os limites do DataGridViewCell que está a ser pintado.
- rowIndex
- Int32
O índice de linhas da célula que está a ser pintada.
- cellState
- DataGridViewElementStates
Uma combinação bit a bit de DataGridViewElementStates valores que especifica o estado da célula.
- value
- Object
Os dados que DataGridViewCell estão a ser pintados.
- formattedValue
- Object
Os dados formatados do DataGridViewCell que estão a ser pintados.
- errorText
- String
Uma mensagem de erro associada à célula.
- cellStyle
- DataGridViewCellStyle
A DataGridViewCellStyle que contém informação de formatação e estilo sobre a célula.
- advancedBorderStyle
- DataGridViewAdvancedBorderStyle
A que contém estilos de DataGridViewAdvancedBorderStyle borda para a célula que está a ser pintada.
- paintParts
- DataGridViewPaintParts
Uma combinação bit a bit dos DataGridViewPaintParts valores que especifica quais as partes da célula que precisam de ser pintadas.