DataGridViewCell::Size Property
.NET Framework (current version)
Gets the size of the cell.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
| Exception | Condition |
|---|---|
| InvalidOperationException | The row containing the cell is a shared row. -or- The cell is a column header cell. |
If the cell is not associated with a DataGridView control, the Size property returns a Size with a width and height of -1.
.NET Framework
Available since 2.0
Available since 2.0
Show: