Font.GetTextWidth
Overloads
GetTextWidth(Char[], Single) | Returns the width of the given text. |
GetTextWidth(String, Single) | Returns the width of the given text. |
GetTextWidth(Char[], Single)
Returns the width of the given text.
public float GetTextWidth(Char[] text, float fontSize)
Function GetTextWidth(text As Char[], fontSize As Single) As Single
Parameters
- text
- Char[]
Byte array or text whose width is returned.
- fontSize
- Single
Font size of text.
Returns
Width of text in points.
Licensing Info
This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
GetTextWidth(String, Single)
Returns the width of the given text.
public float GetTextWidth(string text, float fontSize)
Function GetTextWidth(text As String, fontSize As Single) As Single
Parameters
- text
- String
Text whose width is returned.
- fontSize
- Single
Font size of text.
Returns
Width of text in points.
Licensing Info
This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.