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

Définition

Peint l'icône d'erreur du DataGridViewCell actif.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)

Paramètres

graphics
Graphics

Graphics utilisé pour peindre la bordure.The Graphics used to paint the border.

clipBounds
Rectangle

Rectangle qui représente la zone de DataGridView à repeindre.A Rectangle that represents the area of the DataGridView that needs to be repainted.

cellValueBounds
Rectangle

Rectangle Rectangle englobant qui définit la zone de contenu de la cellule.The bounding Rectangle that encloses the cell's content area.

errorText
String

Message d'erreur associé à la cellule.An error message that is associated with the cell.

Remarques

Le paramètre errorText signale l’existence d’une erreur.The errorText parameter signals the existence of an error. Si errorText est null ou String.Empty, la méthode PaintErrorIcon ne fait rien.If errorText is null or String.Empty, the PaintErrorIcon method does nothing.

S’applique à

Voir aussi