BCGControlBar Library for .NET
CalcTextLayoutSize Method (Cell)




Calculates size of text portion of the cell's data.
Syntax
'Declaration
 
Public Overridable Function CalcTextLayoutSize() As Size
'Usage
 
Dim instance As Cell
Dim value As Size
 
value = instance.CalcTextLayoutSize()
public virtual Size CalcTextLayoutSize()
public: virtual Size CalcTextLayoutSize(); 
public:
virtual Size CalcTextLayoutSize(); 
Remarks
It may be required to display text and some additional information, like an image. If you base your implementation on the TextCell class, you can use TextSize getter to calculate text size depending on the current layout of your text and additional data. The returned size will depend on whether the text is wrapped within the layout rectangle.
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

Reference

Cell Class
Cell Members

Send Feedback