Returns the optimum width and height of the cell in a specified row relative to the specified value.
- g
- A System.Drawing.Graphics object used to draw shapes on the screen.
- value
- The value to draw.
A System.Drawing.Size that contains the dimensions of the cell.
The optimum width and height is calculated by measuring the string size, taking into account its font and attributes, and adding margin values.