DataGridViewCell.PaintErrorIcon Methode

Definition

Zeichnet das Fehlersymbol der aktuellen DataGridViewCell.

protected:
 virtual void PaintErrorIcon(System::Drawing::Graphics ^ graphics, System::Drawing::Rectangle clipBounds, System::Drawing::Rectangle cellValueBounds, System::String ^ errorText);
protected virtual void PaintErrorIcon (System.Drawing.Graphics graphics, System.Drawing.Rectangle clipBounds, System.Drawing.Rectangle cellValueBounds, string errorText);
protected virtual void PaintErrorIcon (System.Drawing.Graphics graphics, System.Drawing.Rectangle clipBounds, System.Drawing.Rectangle cellValueBounds, string? errorText);
abstract member PaintErrorIcon : System.Drawing.Graphics * System.Drawing.Rectangle * System.Drawing.Rectangle * string -> unit
override this.PaintErrorIcon : System.Drawing.Graphics * System.Drawing.Rectangle * System.Drawing.Rectangle * string -> unit
Protected Overridable Sub PaintErrorIcon (graphics As Graphics, clipBounds As Rectangle, cellValueBounds As Rectangle, errorText As String)

Parameter

graphics
Graphics

Die zum Zeichnen des Rahmens verwendete Graphics.

clipBounds
Rectangle

Ein Rectangle, das die Fläche der erneut zu zeichnenden DataGridView darstellt.

cellValueBounds
Rectangle

Das den Inhaltsbereich der Zelle umschließende Rectangle.

errorText
String

Eine Fehlermeldung, die der Zelle zugeordnet ist.

Hinweise

Der errorText Parameter signalisiert das Vorhandensein eines Fehlers. Wenn errorText oder String.Emptyistnull, führt die PaintErrorIcon Methode nichts aus.

Gilt für:

Weitere Informationen