DataGridViewCell.PaintErrorIcon Metodo

Definizione

Disegna l'icona di errore della classe DataGridViewCell corrente.

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)

Parametri

graphics
Graphics

Oggetto Graphics usato per disegnare il bordo.

clipBounds
Rectangle

Oggetto Rectangle che rappresenta l'area dell'oggetto DataGridView da ridisegnare.

cellValueBounds
Rectangle

Struttura Rectangle di delimitazione che racchiude l'area del contenuto della cella.

errorText
String

Messaggio di errore associato alla cella.

Commenti

Il errorText parametro segnala l'esistenza di un errore. Se errorText è null o String.Empty, il PaintErrorIcon metodo non fa nulla.

Si applica a

Vedi anche