CanvasMeasureString Method (String, Font)
Free Trial Web API version Licensing Request A Quote
HAVE QUESTIONS OR NEED HELP?SUBMIT THE SUPPORT REQUEST FORM or write email toSUPPORT@BYTESCOUT.COM
Measures the specified string when drawn with the specified Font.
Namespace:Bytescout.PDFAssembly: Bytescout.PDF (in Bytescout.PDF.dll) Version: 3.5.1.1204-master
Syntax
Parameters
- text
- Type: SystemString
String to measure. - font
- Type: Bytescout.PDFFont
Font that defines the format of the string.
Return Value
Type: SizeFReturns the size of the string in document points (1/72").
See Also