Link Search Menu Expand Document

CanvasMeasureString Method (String, Font)

Measures the specified string when drawn with the specified Font.

Namespace:Bytescout.PDF
Assembly: Bytescout.PDF (in Bytescout.PDF.dll) Version: 3.1.1.556-master
Syntax
public SizeF MeasureString(
	string text,
	Font font
)

Parameters

text
Type: SystemString
String to measure.
font
Type: Bytescout.PDFFont
Font that defines the format of the string.

Return Value

Type: SizeF
Returns the size of the string in document points (1/72").
See Also

Reference


Copyright © 2016 - 2021 ByteScout