Overload | Description |
---|---|
GetPreferredSize(Graphics,Size,Appearance,Object,Single) | Gets the preferred (maximum required) size of the cell for the renderer control. |
GetPreferredSize(Control) | Gets the preferred (maximum required) size of the editor control. |
This method calculates the height and width required to display the rich text in the editor control in the cell.
When font is italic, the size calculation may not be accurate (because of the underlying .NET framework). The line wrapping that occurs based on the WordWrap property setting and the adjusting that occurs when the use double-clicks the header edge may not adjust properly. If any of the included fonts on any of the text in the cell is italics, this could affect the width.
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8