DataGridViewColumnHeaderCell.Paint Methode

Definitie

Verft de huidige DataGridViewColumnHeaderCell.

protected:
 override void Paint(System::Drawing::Graphics ^ graphics, System::Drawing::Rectangle clipBounds, System::Drawing::Rectangle cellBounds, int rowIndex, System::Windows::Forms::DataGridViewElementStates dataGridViewElementState, 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 dataGridViewElementState, 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 dataGridViewElementState, 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, dataGridViewElementState As DataGridViewElementStates, value As Object, formattedValue As Object, errorText As String, cellStyle As DataGridViewCellStyle, advancedBorderStyle As DataGridViewAdvancedBorderStyle, paintParts As DataGridViewPaintParts)

Parameters

graphics
Graphics

De Graphics gebruikte om de cel te schilderen.

clipBounds
Rectangle

Een Rectangle dat het gebied vertegenwoordigt van het DataGridView gebied dat opnieuw moet worden geschilderd.

cellBounds
Rectangle

Een Rectangle die de grenzen bevat van de cel die wordt geschilderd.

rowIndex
Int32

De rijindex van de cel die wordt geschilderd.

dataGridViewElementState
DataGridViewElementStates

Een bitsgewijze combinatie van DataGridViewElementStates waarden die de status van de cel aangeeft.

value
Object

De gegevens van de cel die wordt geschilderd.

formattedValue
Object

De opgemaakte gegevens van de cel die wordt geschilderd.

errorText
String

Een foutbericht dat is gekoppeld aan de cel.

cellStyle
DataGridViewCellStyle

Een DataGridViewCellStyle met opmaak- en stijlgegevens over de cel.

advancedBorderStyle
DataGridViewAdvancedBorderStyle

Een DataGridViewAdvancedBorderStyle met randstijlen voor de cel die wordt geschilderd.

paintParts
DataGridViewPaintParts

Een bitsgewijze combinatie van de DataGridViewPaintParts waarden die aangeeft welke delen van de cel moeten worden geschilderd.

Van toepassing op