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

再描画が必要な DataGridView の領域を表す Rectangle

cellValueBounds
Rectangle

セルの内容領域を囲んだ外接する Rectangle

errorText
String

セルに関連付けられたエラー メッセージ。

注釈

パラメーターは errorText 、エラーの存在を示します。 が null または String.Emptyの場合errorText、メソッドはPaintErrorIcon何も行いません。

適用対象

こちらもご覧ください