Share via


DataGridViewCell.PaintErrorIcon Metode

Definisi

Melukis ikon kesalahan saat ini 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)

Parameter

graphics
Graphics

Yang Graphics digunakan untuk melukis perbatasan.

clipBounds
Rectangle

Rectangle yang mewakili area DataGridView yang perlu dicat ulang.

cellValueBounds
Rectangle

Rectangle Batas yang mencakup area konten sel.

errorText
String

Pesan kesalahan yang terkait dengan sel.

Keterangan

Parameter errorText menandakan adanya kesalahan. Jika errorText adalah null atau String.Empty, PaintErrorIcon metode tidak melakukan apa-apa.

Berlaku untuk

Lihat juga