Accusoft.PrintPro8.Net
TextWidth(Font,String) Method




A System.Drawing.Font to use with the given text.
A string which represents the text to get the printed height of.
Returns the width the text would be if output with specified font.
Syntax
public float TextWidth( 
   Font font,
   string text
)
public: float TextWidth( 
   Font* font,
   string* text
) 
public:
float TextWidth( 
   Font^ font,
   String^ text
) 
'Declaration
 
Public Overloads Function TextWidth( _
   ByVal font As Font, _
   ByVal text As String _
) As Single
 
'Usage
 
Dim instance As Draw
Dim font As Font
Dim text As String
Dim value As Single
 
value = instance.TextWidth(font, text)

Parameters

font
A System.Drawing.Font to use with the given text.
text
A string which represents the text to get the printed height of.

Return Value

A float value which represents the width of the text when printed.
See Also

Reference

Draw Class
Draw Members
Overload List

 

 


©2019. Accusoft Corporation. All Rights Reserved.

Send Feedback