DataGridViewCell.PaintErrorIcon(Graphics, Rectangle, Rectangle, String) Método

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
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.The Graphics used to paint the border.

clipBounds
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 delimitador que rodea el área de contenido de la celda.The bounding Rectangle that encloses the cell's content area.

errorText
String

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

Comentarios

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

Se aplica a

Consulte también: