Spread WPF Documentation
MeasureString Method


GrapeCity.Excel Namespace > IMeasureString Interface : MeasureString Method
The string to be measured.
Name of the font.
Size of the font.
if set to true, word-wrap.
The width of the word-wrap rectangle.
Measures the string.
Syntax
'Declaration
 
Function MeasureString( _
   ByVal text As System.String, _
   ByVal fontName As System.String, _
   ByVal fontSize As System.Double, _
   ByVal wordWrap As System.Boolean, _
   ByVal width As System.Double _
) As GcSize
'Usage
 
Dim instance As IMeasureString
Dim text As System.String
Dim fontName As System.String
Dim fontSize As System.Double
Dim wordWrap As System.Boolean
Dim width As System.Double
Dim value As GcSize
 
value = instance.MeasureString(text, fontName, fontSize, wordWrap, width)
GcSize MeasureString( 
   System.string text,
   System.string fontName,
   System.double fontSize,
   System.bool wordWrap,
   System.double width
)

Parameters

text
The string to be measured.
fontName
Name of the font.
fontSize
Size of the font.
wordWrap
if set to true, word-wrap.
width
The width of the word-wrap rectangle.

Return Value

Returns the size of the string.
See Also

Reference

IMeasureString Interface
IMeasureString Members