DataGridViewCell.PaintErrorIcon(Graphics, Rectangle, Rectangle, String) DataGridViewCell.PaintErrorIcon(Graphics, Rectangle, Rectangle, String) DataGridViewCell.PaintErrorIcon(Graphics, Rectangle, Rectangle, String) Method

Definition

Paints the error icon of the current 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);
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

Parameters

graphics
Graphics Graphics Graphics

The Graphics used to paint the border.

clipBounds
Rectangle Rectangle Rectangle

A Rectangle that represents the area of the DataGridView that needs to be repainted.

cellValueBounds
Rectangle Rectangle Rectangle

The bounding Rectangle that encloses the cell's content area.

errorText
String String String

An error message that is associated with the cell.

Remarks

The errorText parameter signals the existence of an error. If errorText is null or String.Empty, the PaintErrorIcon method does nothing.

Applies to

See also