PDFView4NET WinForms Edition


The string to measure
MeasureString Method
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
)

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 10, Windows 11, Windows Server 2022, Windows Server 2025

See Also