DataGridViewCell.PaintErrorIcon Méthode

Définition

Peint l'icône d'erreur du DataGridViewCell actif.

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)

Paramètres

graphics
Graphics

Graphics utilisé pour peindre la bordure.

clipBounds
Rectangle

Rectangle qui représente la zone de DataGridView à repeindre.

cellValueBounds
Rectangle

Rectangle Rectangle englobant qui définit la zone de contenu de la cellule.

errorText
String

Message d'erreur associé à la cellule.

Remarques

Le errorText paramètre signale l’existence d’une erreur. Si errorText a la valeur null ou String.Empty, la PaintErrorIcon méthode ne fait rien.

S’applique à

Voir aussi