PdfStringDrawingOptions.GetCharacterWidths Method

Gets the character widths for a text string to draw.

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
public ICollection<double> GetCharacterWidths()
VB
Public Function GetCharacterWidths As ICollection(Of Double)

Return Value

Type: ICollection<Double>
The collection of character widths for a text string to draw. Can be null.

Remarks

When this method returns null, text string will be drawn using character widths from the Font.

When this method returns not null, this collection must contain the same number of items as the length of the text string to draw. After drawing of each character in the string, DrawString() methods look up a width in this collection and applies extra displacement if needed.

See Also