ExpertPdf Html to Pdf Converter Library
MeasureString Method (text, font)
NamespacesExpertPdf.HtmlToPdf.PdfDocumentElementsRendererMeasureString(String, PdfFont)
ExpertPdf Html to Pdf Converter Library
Measures the size of the specified string when rendered with the specified font.
Declaration Syntax
C#Visual BasicVisual C++
public SizeF MeasureString(
	string text,
	PdfFont font
)
Public Function MeasureString ( 
	text As String,
	font As PdfFont
) As SizeF
public:
SizeF MeasureString(
	String^ text, 
	PdfFont^ font
)
Parameters
text (String)
String to measure.
font (PdfFont)
The font used to render the string.
Return Value
SizeF
The size of the string.

Assembly: ExpertPdf.HtmlToPdf (Module: ExpertPdf.HtmlToPdf.dll) Version: 9.2.0.25824 (9.2.0.0)