DataGridViewCell.PaintErrorIcon Método

Definición

Dibuja el icono de error del control DataGridViewCell actual.

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)

Parámetros

graphics
Graphics

Clase Graphics que se usa para dibujar el borde.

clipBounds
Rectangle

Rectangle que representa el área de DataGridView que se debe volver a pintar.

cellValueBounds
Rectangle

Rectangle delimitador que rodea el área de contenido de la celda.

errorText
String

Mensaje de error asociado a la celda.

Comentarios

El errorText parámetro indica la existencia de un error. Si errorText es null o String.Empty, el PaintErrorIcon método no hace nada.

Se aplica a

Consulte también