DataGridViewCellPaintingEventArgs(DataGridView, Graphics, Rectangle, Rectangle, Int32, Int32, DataGridViewElementStates, Object, Object, String, DataGridViewCellStyle, DataGridViewAdvancedBorderStyle, DataGridViewPaintParts) Konstruktor

Definition

Initialisiert eine neue Instanz der DataGridViewCellPaintingEventArgs-Klasse.Initializes a new instance of the DataGridViewCellPaintingEventArgs class.

public:
 DataGridViewCellPaintingEventArgs(System::Windows::Forms::DataGridView ^ dataGridView, System::Drawing::Graphics ^ graphics, System::Drawing::Rectangle clipBounds, System::Drawing::Rectangle cellBounds, int rowIndex, int columnIndex, 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);
public DataGridViewCellPaintingEventArgs (System.Windows.Forms.DataGridView dataGridView, System.Drawing.Graphics graphics, System.Drawing.Rectangle clipBounds, System.Drawing.Rectangle cellBounds, int rowIndex, int columnIndex, 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);
new System.Windows.Forms.DataGridViewCellPaintingEventArgs : System.Windows.Forms.DataGridView * System.Drawing.Graphics * System.Drawing.Rectangle * System.Drawing.Rectangle * int * int * System.Windows.Forms.DataGridViewElementStates * obj * obj * string * System.Windows.Forms.DataGridViewCellStyle * System.Windows.Forms.DataGridViewAdvancedBorderStyle * System.Windows.Forms.DataGridViewPaintParts -> System.Windows.Forms.DataGridViewCellPaintingEventArgs
Public Sub New (dataGridView As DataGridView, graphics As Graphics, clipBounds As Rectangle, cellBounds As Rectangle, rowIndex As Integer, columnIndex As Integer, cellState As DataGridViewElementStates, value As Object, formattedValue As Object, errorText As String, cellStyle As DataGridViewCellStyle, advancedBorderStyle As DataGridViewAdvancedBorderStyle, paintParts As DataGridViewPaintParts)

Parameter

dataGridView
DataGridView

Die DataGridView mit der zu zeichnenden Zelle.The DataGridView that contains the cell to be painted.

graphics
Graphics

Die Graphics, mit der die DataGridViewCell gezeichnet wird.The Graphics used to paint the DataGridViewCell.

clipBounds
Rectangle

Ein Rectangle, das die Fläche der erneut zu zeichnenden DataGridView darstellt.A Rectangle that represents the area of the DataGridView that needs to be repainted.

cellBounds
Rectangle

Ein Rectangle, das die Begrenzungen der DataGridViewCell enthält, die gezeichnet wird.A Rectangle that contains the bounds of the DataGridViewCell that is being painted.

rowIndex
Int32

Der Zeilenindex der gezeichneten Zelle.The row index of the cell that is being painted.

columnIndex
Int32

Der Spaltenindex der Zelle, die gezeichnet wird.The column index of the cell that is being painted.

cellState
DataGridViewElementStates

Eine bitweise Kombination der DataGridViewElementStates-Werte, die den aktuellen Zustand der Zelle angibt.A bitwise combination of the DataGridViewElementStates values that specifies the state of the cell.

value
Object

Die Daten der DataGridViewCell, die gezeichnet wird.The data of the DataGridViewCell that is being painted.

formattedValue
Object

Die formatierten Daten der DataGridViewCell, die gezeichnet wird.The formatted data of the DataGridViewCell that is being painted.

errorText
String

Eine Fehlermeldung, die der Zelle zugeordnet ist.An error message that is associated with the cell.

cellStyle
DataGridViewCellStyle

Ein DataGridViewCellStyle, der Formatierungs- und Stilinformationen zur Zelle enthält.A DataGridViewCellStyle that contains formatting and style information about the cell.

advancedBorderStyle
DataGridViewAdvancedBorderStyle

Ein DataGridViewAdvancedBorderStyle mit Rahmenarten für die Zelle, die gezeichnet wird.A DataGridViewAdvancedBorderStyle that contains border styles for the cell that is being painted.

paintParts
DataGridViewPaintParts

Eine bitweise Kombination von DataGridViewPaintParts-Werten, die die zu zeichnenden Teile angibt.A bitwise combination of DataGridViewPaintParts values specifying the parts to paint.

Ausnahmen

dataGridView ist null.dataGridView is null.

- oder --or- graphics ist null.graphics is null.

- oder --or- cellStyle ist null.cellStyle is null.

paintParts ist keine gültige bitweise Kombination von DataGridViewPaintParts-Werten.paintParts is not a valid bitwise combination of DataGridViewPaintParts values.

Gilt für:

Weitere Informationen