[]
Measures the specified cell when drawn.
public Size MeasureCellSize(int row, int col)
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)
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. |