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當 屬性為 false 時,這個屬性的值是 Empty

這個屬性會 GetErrorIconBounds 呼叫 方法來取得其值。 針對基底 DataGridViewCell 類型,這個值一律 Empty 為 。

適用於

另請參閱