DataGridViewCell.PaintErrorIcon Yöntem

Tanım

Geçerli DataGridViewCellöğesinin hata simgesini boyar.

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)

Parametreler

graphics
Graphics

Sınırı Graphics boyamak için kullanılan.

clipBounds
Rectangle

Rectangle Öğesinin yeniden boyanması DataGridView gereken alanını temsil eden bir.

cellValueBounds
Rectangle

Hücrenin içerik alanını çevreleyen sınırlayıcı Rectangle .

errorText
String

Hücreyle ilişkili bir hata iletisi.

Açıklamalar

errorText parametresi bir hatanın var olduğunu belirtir. veya String.EmptyPaintErrorIcon ise nullerrorText yöntemi hiçbir şey yapmaz.

Şunlara uygulanır

Ayrıca bkz.