GrapeCity.Xaml.Excel
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 String, _
   ByVal fontName As String, _
   ByVal fontSize As Double, _
   ByVal wordWrap As Boolean, _
   ByVal width As Double _
) As GcSize
'Usage
 
Dim instance As IMeasureString
Dim text As String
Dim fontName As String
Dim fontSize As Double
Dim wordWrap As Boolean
Dim width As Double
Dim value As GcSize
 
value = instance.MeasureString(text, fontName, fontSize, wordWrap, width)
GcSize MeasureString( 
   string text,
   string fontName,
   double fontSize,
   bool wordWrap,
   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 Server 2012, Windows RT

See Also

Reference

IMeasureString Interface
IMeasureString Members

 

 


Copyright © GrapeCity, inc. All rights reserved.

Support Options