DataGridViewCell.PaintErrorIcon Metoda

Definicja

Maluje ikonę błędu bieżącego DataGridViewCellelementu .

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

Używany Graphics do malowania obramowania.

clipBounds
Rectangle

Element Rectangle reprezentujący obszar DataGridView , który musi zostać przemalowany.

cellValueBounds
Rectangle

Ograniczenie, Rectangle które otacza obszar zawartości komórki.

errorText
String

Komunikat o błędzie skojarzony z komórką.

Uwagi

errorText Parametr sygnalizuje istnienie błędu. Jeśli errorText jest lub String.Emptynull , PaintErrorIcon metoda nic nie robi.

Dotyczy

Zobacz też