PdfContents.DrawText Method (PdfFont, Double, Double, Double, TextJustify, DrawStyle, Color, String)

PDF File Writer

PdfContentsDrawText Method (PdfFont, Double, Double, Double, TextJustify, DrawStyle, Color, String)

Draw one line of text with text justification, drawing style and color

Namespace:  PdfFileWriter
Assembly:  PdfFileWriter (in PdfFileWriter.dll) Version: 1.1.24.0 (1.1.24.0)
Syntax
C#
public double DrawText(
	PdfFont Font,
	double FontSize,
	double PosX,
	double PosY,
	TextJustify Justify,
	DrawStyle DrawStyle,
	Color TextColor,
	string Text
)

Parameters

Font
Type: PdfFileWriterPdfFont
Font
FontSize
Type: SystemDouble
Font size
PosX
Type: SystemDouble
Position X
PosY
Type: SystemDouble
Position Y
Justify
Type: PdfFileWriterTextJustify
Text justify enumeration
DrawStyle
Type: PdfFileWriterDrawStyle
Drawing style enumeration
TextColor
Type: System.DrawingColor
Color
Text
Type: SystemString
Text

Return Value

Type: Double
Text width
See Also