Measures a string by using this font.
Namespace: Spire.Pdf.GraphicsAssembly: Spire.Pdf (in Spire.Pdf.dll) Version: 7.9.2.0 (7.9.2.1020)
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
Parameters
- text
- String
Text to be measured.
- width
- Single
Maximum width of the string in points.
Return Value
SizeFSize of the text.