Spread Windows Forms 6.0 Product Documentation
GetPreferredSize Method
See Also  Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > RichTextCellType Class : GetPreferredSize Method


Glossary Item Box

Gets the preferred (maximum needed) size of the cell for the renderer control. Gets the preferred (maximum) size of the editor control used in the cell.

Overload List

OverloadDescription
GetPreferredSize(Graphics,Size,Appearance,Object,Single)Gets the preferred (maximum needed) size of the cell for the renderer control.  
GetPreferredSize(Control)Gets the preferred (maximum needed) size of the editor control.  

Remarks

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.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.