DataGridViewCell.PaintErrorIcon Metoda

Definice

Vykreslí ikonu chyby aktuálního 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)

Parametry

graphics
Graphics

Slouží Graphics k malování ohraničení.

clipBounds
Rectangle

A Rectangle , který představuje oblast objektu DataGridView , který je potřeba překreslovat.

cellValueBounds
Rectangle

Ohraničující Rectangle oblast obsahu buňky.

errorText
String

Chybová zpráva přidružená k buňce.

Poznámky

Parametr errorText signalizuje existenci chyby. Pokud errorText je null nebo String.Empty, PaintErrorIcon metoda neprovede nic.

Platí pro

Viz také