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