Spread for ASP.NET 7.0 Product Documentation
GetStringSize Method
See Also  Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > BaseCellType Class : GetStringSize Method


s
Text string
size
Size of the text string
zoomFactor
Numeric value for zoom factor for scaling the display
appearance
Appearance settings

Glossary Item Box

Gets the size of the text string.

Syntax

Visual Basic (Declaration) 
Protected Function GetStringSize( _
   ByVal s As String, _
   ByVal size As Size, _
   ByVal zoomFactor As Single, _
   ByVal appearance As Appearance _
) As Size
Visual Basic (Usage)Copy Code
Dim instance As BaseCellType
Dim s As String
Dim size As Size
Dim zoomFactor As Single
Dim appearance As Appearance
Dim value As Size
 
value = instance.GetStringSize(s, size, zoomFactor, appearance)
C# 
protected Size GetStringSize( 
   string s,
   Size size,
   float zoomFactor,
   Appearance appearance
)

Parameters

s
Text string
size
Size of the text string
zoomFactor
Numeric value for zoom factor for scaling the display
appearance
Appearance settings

Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

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