PaintErrorIcon Method
TOC
Collapse the table of content
Expand the table of content

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

 

Paints the error icon of the current DataGridViewCell.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

abstract PaintErrorIcon : 
        graphics:Graphics *
        clipBounds:Rectangle *
        cellValueBounds:Rectangle *
        errorText:string -> unit
override PaintErrorIcon : 
        graphics:Graphics *
        clipBounds:Rectangle *
        cellValueBounds:Rectangle *
        errorText:string -> unit

Parameters

graphics
Type: System.Drawing.Graphics

The Graphics used to paint the border.

clipBounds
Type: System.Drawing.Rectangle

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

cellValueBounds
Type: System.Drawing.Rectangle

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

errorText
Type: System.String

An error message that is associated with the cell.

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

.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft