CanvasMeasureString Method (String, Font, Single)ByteScout PDF SDK
Measures the specified string limited to the specified width.

Namespace:  Bytescout.PDF
Assembly:  Bytescout.PDF (in Bytescout.PDF.dll) Version: 1.9.7.331-master
Syntax

public float MeasureString(
	string text,
	Font font,
	float maxWidth
)

Parameters

text
Type: SystemString
String to measure.
font
Type: Bytescout.PDFFont
Font that defines the format of the string.
maxWidth
Type: SystemSingle
Maximum text width. The text will be automatically wrapped at this width.

Return Value

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

Reference