CanvasDrawString Method (String, Font, Pen, Single, Single, Single, Single, StringFormat)ByteScout PDF SDK
Draws the specified text string at the specified location and size with the specified pen and font objects.

Namespace:  Bytescout.PDF
Assembly:  Bytescout.PDF (in Bytescout.PDF.dll) Version: 1.9.7.331-master
Syntax

public void DrawString(
	string text,
	Font font,
	Pen pen,
	float left,
	float top,
	float width,
	float height,
	StringFormat sf
)

Parameters

text
Type: SystemString
The string to draw.
font
Type: Bytescout.PDFFont
Bytescout.PDF.Font that defines the text format of the string.
pen
Type: Bytescout.PDFPen
Bytescout.PDF.Pen that determines the color, width, and style of the text outline.
left
Type: SystemSingle
The x-coordinate of the target rectangle to draw the text.
top
Type: SystemSingle
The y-coordinate of the target rectangle to draw the text.
width
Type: SystemSingle
The height of the target rectangle to draw the text.
height
Type: SystemSingle
The width of the target rectangle to draw the text.
sf
Type: Bytescout.PDFStringFormat
The text string format.
See Also

Reference