Spread Silverlight Documentation
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.
Requirements

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

See Also

Reference

IMeasureString Interface
IMeasureString Members

 

 


Copyright © GrapeCity, inc. All rights reserved.