DataGridViewCell.PaintErrorIcon メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > DataGridViewCell.PaintErrorIcon メソッドの意味・解説 

DataGridViewCell.PaintErrorIcon メソッド

メモ : このメソッドは、.NET Framework version 2.0 で新しく追加されたものです。

現在の DataGridViewCell のエラー アイコンを描画します。

名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文構文

Protected Overridable Sub
 PaintErrorIcon ( _
    graphics As Graphics, _
    clipBounds As Rectangle, _
    cellValueBounds As Rectangle, _
    errorText As String _
)
Dim graphics As Graphics
Dim clipBounds As Rectangle
Dim cellValueBounds As Rectangle
Dim errorText As String

Me.PaintErrorIcon(graphics, clipBounds, cellValueBounds, errorText)
protected virtual void PaintErrorIcon (
    Graphics graphics,
    Rectangle clipBounds,
    Rectangle cellValueBounds,
    string errorText
)
protected:
virtual void PaintErrorIcon (
    Graphics^ graphics, 
    Rectangle clipBounds, 
    Rectangle cellValueBounds, 
    String^ errorText
)
protected void PaintErrorIcon (
    Graphics graphics, 
    Rectangle clipBounds, 
    Rectangle cellValueBounds, 
    String errorText
)
protected function PaintErrorIcon (
    graphics : Graphics, 
    clipBounds : Rectangle, 
    cellValueBounds : Rectangle, 
    errorText : String
)

パラメータ

graphics

境界線の描画に使用される Graphics。

clipBounds

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

cellValueBounds

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

errorText

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

解説解説

errorText パラメータはエラーの存在を通知します。errorText が null 参照 (Visual Basic では Nothing) または String.Empty の場合、PaintErrorIcon メソッドは何も実行しません。

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

DataGridViewCell.PaintErrorIcon メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



DataGridViewCell.PaintErrorIcon メソッドのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS