PDFView4NET WinForms Edition
MeasureString Method




O2S.Components.PDFView4NET.Graphics.Fonts Namespace > PDFFontBase Class : MeasureString Method
The string to measure
Measures the specified string when drawn with this font object.
Syntax
'Declaration
 
Public Overridable Function MeasureString( _
   ByVal text As String _
) As Double
'Usage
 
Dim instance As PDFFontBase
Dim text As String
Dim value As Double
 
value = instance.MeasureString(text)
public virtual double MeasureString( 
   string text
)
public: virtual double MeasureString( 
   string* text
) 
public:
virtual double MeasureString( 
   String^ text
) 

Parameters

text
The string to measure

Return Value

This method returns a double value that represents the size, in points, of the string specified by the text parameter as drawn with this font object.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

PDFFontBase Class
PDFFontBase Members