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

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

DataGridViewTopLeftHeaderCell.GetErrorIconBounds メソッド

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

セルのエラー アイコンが表示されている場合に、そのエラー アイコンを囲む外接する四角形を返します。

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

Protected Overrides Function
 GetErrorIconBounds ( _
    graphics As Graphics, _
    cellStyle As DataGridViewCellStyle, _
    rowIndex As Integer _
) As Rectangle
Dim graphics As Graphics
Dim cellStyle As DataGridViewCellStyle
Dim rowIndex As Integer
Dim returnValue As Rectangle

returnValue = Me.GetErrorIconBounds(graphics, cellStyle, rowIndex)
protected override Rectangle GetErrorIconBounds (
    Graphics graphics,
    DataGridViewCellStyle cellStyle,
    int rowIndex
)
protected:
virtual Rectangle GetErrorIconBounds (
    Graphics^ graphics, 
    DataGridViewCellStyle^ cellStyle, 
    int rowIndex
) override
protected Rectangle GetErrorIconBounds (
    Graphics graphics, 
    DataGridViewCellStyle cellStyle, 
    int rowIndex
)
protected override function GetErrorIconBounds
 (
    graphics : Graphics, 
    cellStyle : DataGridViewCellStyle, 
    rowIndex : int
) : Rectangle

パラメータ

graphics

セルのグラフィックス コンテキスト。

cellStyle

セルに適用される DataGridViewCellStyle。

rowIndex

セルの親行のインデックス。

戻り値
セルのエラー アイコンが表示されている場合は、そのエラー アイコンに外接する Rectangle。エラー アイコンが表示されていない場合は Empty。

例外例外
例外の種類条件

ArgumentOutOfRangeException

rowIndex が -1 ではありません。

解説解説
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DataGridViewTopLeftHeaderCell クラス
DataGridViewTopLeftHeaderCell メンバ
System.Windows.Forms 名前空間
DataGridViewCellStyle クラス
Rectangle
DataGridView クラス
DataGridViewCell.ErrorIconBounds プロパティ



英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

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

   

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



DataGridViewTopLeftHeaderCell.GetErrorIconBounds メソッドのページの著作権

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

©2026 GRAS Group, Inc.RSS