ComponentOne Word for UWP
MeasureString(String,Font,Double,StringFormat) Method

C1.UWP.Word Assembly > C1.Xaml.Word Namespace > C1WordDocument Class > MeasureString Method : MeasureString(String,Font,Double,StringFormat) Method
The drawing string.
The drawing font.
The drawing width or -1 for default.
The drawing string format.
Measure string for this document.
Syntax
'Declaration
 
Public Overloads Function MeasureString( _
   ByVal text As System.String, _
   ByVal font As Font, _
   ByVal width As System.Double, _
   ByVal sf As StringFormat _
) As Windows.Foundation.Size
public Windows.Foundation.Size MeasureString( 
   System.string text,
   Font font,
   System.double width,
   StringFormat sf
)

Parameters

text
The drawing string.
font
The drawing font.
width
The drawing width or -1 for default.
sf
The drawing string format.

Return Value

The size, in points, of the string specified as drawn with the font parameter.
See Also

Reference

C1WordDocument Class
C1WordDocument Members
Overload List