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

Single

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:

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

Single

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:

See Also

Font
ceTe.DynamicPDF

In this topic