Draws the specified text string starting from the current TextPosition.

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

Syntax

C#
public void DrawString(
	string text,
	ICollection<double> charWidths
)
VB
Public Sub DrawString ( 
	text As String,
	charWidths As ICollection(Of Double)
)

Parameters

text
Type: System.String
The string to draw.
charWidths
Type: System.Collections.Generic.ICollection<Double>
The char widths.

Remarks

After drawing of each character in the string represented by the text parameter this method looks up a width in a collection represented by the charWidths parameter and applies extra displacement if needed.

The string represented by the text parameter always spans only one line. Please use DrawText Overload if you want to draw more the one line of text.

See Also