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

Definición

Dibuja el icono de error del control DataGridViewCell actual.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

Parámetros

graphics
Graphics Graphics Graphics

Graphics que se utiliza para dibujar el borde.The Graphics used to paint the border.

clipBounds
Rectangle Rectangle Rectangle

Rectangle que representa el área del control DataGridView que es necesario volver a dibujar.A Rectangle that represents the area of the DataGridView that needs to be repainted.

cellValueBounds
Rectangle Rectangle Rectangle

Rectangle delimitador que rodea el área de contenido de la celda.The bounding Rectangle that encloses the cell's content area.

errorText
String String String

Mensaje de error asociado a la celda.An error message that is associated with the cell.

Comentarios

El errorText parámetro indica la existencia de un error.The errorText parameter signals the existence of an error. Si errorText es null o String.Empty, el PaintErrorIcon método no hace nada.If errorText is null or String.Empty, the PaintErrorIcon method does nothing.

Se aplica a

Consulte también: