DataGridViewCell.ErrorIconBounds プロパティ

定義

セルのエラー アイコンの境界を取得します。

public:
 property System::Drawing::Rectangle ErrorIconBounds { System::Drawing::Rectangle get(); };
[System.ComponentModel.Browsable(false)]
public System.Drawing.Rectangle ErrorIconBounds { get; }
[<System.ComponentModel.Browsable(false)>]
member this.ErrorIconBounds : System.Drawing.Rectangle
Public ReadOnly Property ErrorIconBounds As Rectangle

プロパティ値

現在の Rectangle のエラー アイコンの境界を表す DataGridViewCell

属性

例外

セルが DataGridView コントロールに属していません。

- または -

ColumnIndex が 0 未満です。これは、セルが行ヘッダーのセルであることを示します。

セルを含む行が共有行です。

- または -

セルが列ヘッダーのセルです。

注釈

返される四角形は、クライアント座標をピクセル単位で報告します。

プロパティが のDataGridView.ShowCellErrors場合、このプロパティの値は ですEmptyfalse

このプロパティは、 メソッドを GetErrorIconBounds 呼び出して値を取得します。 基本 DataGridViewCell 型の場合、この値は常に Emptyです。

適用対象

こちらもご覧ください