[]
Measures the specified cell when drawn.
public Size MeasureCellSize(int row, int col)
Public Function MeasureCellSize(row As Integer, col As Integer) As Size
| Type | Name | Description |
|---|---|---|
| int | row | Specified cell row. |
| int | col | Specified cell column. |
| Type | Description |
|---|---|
| Size | Returns the size that the specified cell will occupy after drawing. |
Creates a new Graphics object on each call. To calculate the size of multiple cells, use MeasureCellSize(Graphics, int, int)
Measures the specified cell when drawn.
public Size MeasureCellSize(Graphics g, int row, int col)
Public Function MeasureCellSize(g As Graphics, row As Integer, col As Integer) As Size
| Type | Name | Description |
|---|---|---|
| Graphics | g | Graphics. |
| int | row | Specified cell row. |
| int | col | Specified cell column. |
| Type | Description |
|---|---|
| Size | Returns the size that the specified cell will occupy after drawing. |