When overridden in a derived class, gets the width and height of the specified value. The width and height are used when the user navigates to System.Windows.Forms.DataGridTableStyle using the System.Windows.Forms.DataGridColumnStyle.
- g
- A System.Drawing.Graphics object.
- value
- An object value for which you want to know the screen height and width.
A System.Drawing.Size that contains the dimensions of the cell.
Use DataGridColumnStyle.GetPreferredSize(System.Drawing.Graphics, object) to determine the width a column should resize to, given a particular string or numeral.