![Pdftools logo](../icons/pdftools-icon.png) | 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.FourHeights.PdfToolbox.Pdf.ContentAssembly: PdfTools.FourHeights.PdfToolbox (in PdfTools.FourHeights.PdfToolbox.dll) Version: 4.4.1+cd45f416896d630bcd3719f4b2cba7920f2790da
Syntaxpublic double GetWidth(
string text
)
Parameters
- text String
-
the text fragment
Return Value
Double
the width of the text
ExceptionsException | 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