Click or drag to resize
Pdf Library for .NET

PdfTextElement(Single, Single, Single, Single, String, PdfFont) Constructor

Creates a text object that can be added to a pdf document.

Namespace: SelectPdf
Assembly: Select.Pdf (in Select.Pdf.dll) Version: 26.2
Syntax
public PdfTextElement(
	float x,
	float y,
	float width,
	float height,
	string text,
	PdfFont font
)

Parameters

x  Single
The start X coordinate where the text will be rendered.
y  Single
The start Y coordinate where the text will be rendered.
width  Single
The width of the destination rectangle.
height  Single
The height of the destination rectangle.
text  String
The text to be rendered.
font  PdfFont
The text font. To support Unicode texts, the true type fonts must be embedded in the pdf document when they are added.
Remarks
The text element that will be rendered at the specified (x,y) position using the specified font. The width and height of the text on the destination page are also specified.
See Also