DataGridViewCell.PaintErrorIcon Метод

Определение

Окрашивает значок ошибки текущей ячейки 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);
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)

Параметры

graphics
Graphics

Объект Graphics, используемый для окрашивания границы.

clipBounds
Rectangle

Объект Rectangle, представляющий область DataGridView, которую требуется перезакрасить.

cellValueBounds
Rectangle

Объект Rectangle, ограничивающий область содержимого ячейки.

errorText
String

Сообщение об ошибке, связанное с ячейкой.

Комментарии

Параметр errorText сигнализирует о существовании ошибки. Если errorText имеет значение null или String.Empty, PaintErrorIcon метод не выполняет никаких действий.

Применяется к

См. также раздел