PdfFontBase
MeasureString Method (String, SizeF)
|
Measures a string by using this font.
Namespace:
Spire.Pdf.Graphics
Assembly:
Spire.Pdf (in Spire.Pdf.dll) Version: 11.3.7.0 (11.3.7.1046)
Syntax
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
-
Type:
System
String
Text to be measured.
-
layoutArea
-
Type:
System.Drawing
SizeF
SizeF structure that specifies the maximum layout area for the text in points.
Return Value
Type:
SizeF
Size of the text.
See Also