PdfCanvas.DrawString Method (String, PdfStringDrawingOptions)

Docotic.Pdf library help > BitMiracle.Docotic.Pdf > PdfCanvas Class > PdfCanvas Methods > DrawString Method > DrawString Method (String, PdfStringDrawingOptions)
Draws the specified text string starting from the current TextPosition using the specified options.

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

Syntax

C#
public void DrawString(
	string text,
	PdfStringDrawingOptions options
)
VB
Public Sub DrawString ( 
	text As String,
	options As PdfStringDrawingOptions
)

Parameters

text
Type: System.String
The string to draw.
options
Type: BitMiracle.Docotic.Pdf.PdfStringDrawingOptions
The drawing options.

Remarks

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

See Also