Measures a string by using this font.

Namespace: Spire.Pdf.Graphics
Assembly: 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,
	PdfStringFormat format
)
Public Function MeasureString ( 
	text As String,
	format As PdfStringFormat
) As SizeF
public:
SizeF MeasureString(
	String^ text, 
	PdfStringFormat^ format
)
member MeasureString : 
        text : string * 
        format : PdfStringFormat -> SizeF 

Parameters

text
String
Text to be measured.
format
PdfStringFormat
PdfStringFormat that represents formatting information, such as line spacing, for the string.

Return Value

SizeF
Size of the text.

See Also