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, SizeF layoutArea )
Public Function MeasureString ( text As String, layoutArea As SizeF ) As SizeF
public: SizeF MeasureString( String^ text, SizeF layoutArea )
member MeasureString : text : string * layoutArea : SizeF -> SizeF
Parameters
- text
- String
Text to be measured.
- layoutArea
- SizeF
SizeF structure that specifies the maximum layout area for the text in points.
Return Value
SizeFSize of the text.