DataGridViewTextBoxCell.Paint Methode

Definition

Zeichnet den aktuellen 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)

Parameter

graphics
Graphics

Die Graphics zum Zeichnen der DataGridViewCell.

clipBounds
Rectangle

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

cellBounds
Rectangle

Eine Rectangle , die die Grenzen der DataGridViewCell Gezeichneten enthält.

rowIndex
Int32

Der Zeilenindex der Zelle, die gezeichnet wird.

cellState
DataGridViewElementStates

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

value
Object

Die Daten, die DataGridViewCell gezeichnet werden.

formattedValue
Object

Die formatierten Daten der DataGridViewCell gezeichneten Daten.

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:

Weitere Informationen