DataGridViewButtonCell.Paint Methode

Definition

Zeichnet den aktuellen DataGridViewButtonCell.

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);
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
Protected Overrides Sub Paint (graphics As Graphics, clipBounds As Rectangle, cellBounds As Rectangle, rowIndex As Integer, elementState As DataGridViewElementStates, value As Object, formattedValue As Object, errorText As String, cellStyle As DataGridViewCellStyle, advancedBorderStyle As DataGridViewAdvancedBorderStyle, paintParts As DataGridViewPaintParts)

Parameter

graphics
Graphics

Wird Graphics verwendet, um die Zelle zu zeichnen.

clipBounds
Rectangle

A Rectangle that represents the area of the DataGridView that needs to be repainted.

cellBounds
Rectangle

A Rectangle , das die Grenzen der Zelle enthält, die gezeichnet wird.

rowIndex
Int32

Der Zeilenindex der Zelle, die gezeichnet wird.

elementState
DataGridViewElementStates

Eine bitweise Kombination von DataGridViewElementStates Werten, die den Zustand der Zelle angibt.

value
Object

Die Daten der Zelle, die gezeichnet wird.

formattedValue
Object

Die formatierten Daten der Zelle, die gezeichnet wird.

errorText
String

Eine Fehlermeldung, die der Zelle zugeordnet ist.

cellStyle
DataGridViewCellStyle

Ein DataGridViewCellStyle Element, das Formatierungs- und Formatinformationen zu der Zelle enthält.

advancedBorderStyle
DataGridViewAdvancedBorderStyle

A DataGridViewAdvancedBorderStyle that contains border styles for the cell that is bemalt.

paintParts
DataGridViewPaintParts

Eine bitweise Kombination der DataGridViewPaintParts Werte, die angibt, welche Teile der Zelle gezeichnet werden müssen.

Gilt für: