Link Search Menu Expand Document

CanvasMeasureString Method (String, Font, StringFormat)

Measures the width of the text, considering Word Spacing and Character Spacing of the String Format

Namespace:Bytescout.PDF
Assembly: Bytescout.PDF (in Bytescout.PDF.dll) Version: 3.5.1.1204-master
Syntax
public float MeasureString(
	string text,
	Font font,
	StringFormat stringFormat
)

Parameters

text
Type: SystemString
The string to measure.
font
Type: Bytescout.PDFFont
Bytescout.PDF.Font that defines the text format of the string.
stringFormat
Type: Bytescout.PDFStringFormat
The text string format.

Return Value

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

Reference