DataGridViewCell.PaintErrorIcon Método

Definição

Pinta o ícone de erro do DataGridViewCell atual.

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)

Parâmetros

graphics
Graphics

O Graphics usado para pintar a borda.

clipBounds
Rectangle

Um Rectangle que representa a área do DataGridView que precisa ser pintada novamente.

cellValueBounds
Rectangle

O Rectangle delimitador que circunscreve a área de conteúdo da célula.

errorText
String

Uma mensagem de erro associada à célula.

Comentários

O errorText parâmetro sinaliza a existência de um erro. Se errorText for null ou String.Empty, o PaintErrorIcon método não fará nada.

Aplica-se a

Confira também