Measures a string by using this font.
Namespace: Spire.Pdf.GraphicsAssembly: Spire.Pdf (in Spire.Pdf.dll) Version: 6.2.6.0 (6.2.6.2020)
Syntax
C# | Visual Basic | Visual C++ | F# |
public SizeF MeasureString( string text, float width )
Public Function MeasureString ( text As String, width As Single ) As SizeF
public: SizeF MeasureString( String^ text, float width )
member MeasureString : text : string * width : float32 -> SizeF
Return Value
SizeFSize of the text.