ComponentOne Word for UWP
MeasureFontSize Method

C1.UWP.Word Assembly > C1.Xaml.Word Namespace > C1WordDocument Class : MeasureFontSize Method
The drawing string.
The drawing base font.
The current size in points for fit the drawing string.
Measure font size for the text of this document.
Syntax
'Declaration
 
Public Function MeasureFontSize( _
   ByVal text As System.String, _
   ByVal font As Font, _
   ByVal width As System.Double _
) As Font
public Font MeasureFontSize( 
   System.string text,
   Font font,
   System.double width
)

Parameters

text
The drawing string.
font
The drawing base font.
width
The current size in points for fit the drawing string.

Return Value

The new drawing font with calculated font size.
See Also

Reference

C1WordDocument Class
C1WordDocument Members