DataGridViewCheckBoxCell.Paint(Graphics, Rectangle, Rectangle, Int32, DataGridViewElementStates, Object, Object, String, DataGridViewCellStyle, DataGridViewAdvancedBorderStyle, DataGridViewPaintParts) DataGridViewCheckBoxCell.Paint(Graphics, Rectangle, Rectangle, Int32, DataGridViewElementStates, Object, Object, String, DataGridViewCellStyle, DataGridViewAdvancedBorderStyle, DataGridViewPaintParts) DataGridViewCheckBoxCell.Paint(Graphics, Rectangle, Rectangle, Int32, DataGridViewElementStates, Object, Object, String, DataGridViewCellStyle, DataGridViewAdvancedBorderStyle, DataGridViewPaintParts) Method

Definition

Zeichnet die aktuelle DataGridViewCheckBoxCellPaints the current DataGridViewCheckBoxCell.

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);
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

Parameter

graphics
Graphics Graphics Graphics

Das Graphics, das zum Zeichnen der Zelle verwendet wird.The Graphics used to paint the cell.

clipBounds
Rectangle Rectangle 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 Rectangle Rectangle

Ein Rectangle, das die Begrenzungen der gezeichneten Zelle enthält.A Rectangle that contains the bounds of the cell that is being painted.

rowIndex
Int32 Int32 Int32

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

elementState
DataGridViewElementStates DataGridViewElementStates DataGridViewElementStates

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

value
Object Object Object

Die Daten der gezeichneten Zelle.The data of the cell that is being painted.

formattedValue
Object Object Object

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

errorText
String String String

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

cellStyle
DataGridViewCellStyle DataGridViewCellStyle DataGridViewCellStyle

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

advancedBorderStyle
DataGridViewAdvancedBorderStyle DataGridViewAdvancedBorderStyle 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 DataGridViewPaintParts DataGridViewPaintParts

Eine bitweise Kombination der DataGridViewPaintParts-Werte, die angibt, welche Teile der Zelle gezeichnet werden müssen.A bitwise combination of the DataGridViewPaintParts values that specifies which parts of the cell need to be painted.

Gilt für: