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

Definizione

Disegna l'icona di errore della classe DataGridViewCell corrente.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)

Parametri

graphics
Graphics

Oggetto Graphics usato per disegnare il bordo.The Graphics used to paint the border.

clipBounds
Rectangle

Oggetto Rectangle che rappresenta l'area dell'oggetto DataGridView da ridisegnare.A Rectangle that represents the area of the DataGridView that needs to be repainted.

cellValueBounds
Rectangle

Struttura Rectangle di delimitazione che racchiude l'area del contenuto della cella.The bounding Rectangle that encloses the cell's content area.

errorText
String

Messaggio di errore associato alla cella.An error message that is associated with the cell.

Commenti

Il errorText parametro segnala l'esistenza di un errore.The errorText parameter signals the existence of an error. Se errorText è null o String.Empty , il PaintErrorIcon metodo non esegue alcuna operazione.If errorText is null or String.Empty, the PaintErrorIcon method does nothing.

Si applica a

Vedi anche