 | 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.ContentAssembly: PdfTools.Toolbox (in PdfTools.Toolbox.dll) Version: 1.11.0+eb7160cc6b920e36fb1ea2abe5f76809067c0c55
Syntaxpublic double GetWidth(
string text
)
Parameters
- text String
-
the text fragment
Return Value
Double
the width of the text
Exceptions| Exception | Condition |
|---|
| InvalidOperationException | if the object has already been closed |
| InvalidOperationException | if the underlying text object has already been closed |
| ArgumentException | if the text argument is |
See Also