Click or drag to resize
Pdftools logo

TextGeneratorGetWidth Method

Get the width of a text string.

The width of a text string as if it would be shown with the current settings.

Namespace: PdfTools.Toolbox.Pdf.Content
Assembly: PdfTools.Toolbox (in PdfTools.Toolbox.dll) Version: 1.1.0+5820e9ca9ca173983539ffc40abc227fb62e6928
Syntax
C#
public double GetWidth(
	string text
)

Parameters

text  String
the text fragment

Return Value

Double
the width of the text
Exceptions
ExceptionCondition
InvalidOperationExceptionif the object has already been closed
InvalidOperationExceptionif the underlying text object has already been closed
ArgumentExceptionif the text argument is
See Also