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为 。

适用于

另请参阅