EVO HTML to PDF Converter

TextElement Constructor (Single, Single, String, PdfFont, RgbColor)

EVO PDF Client for .NET Documentation
Constructs a paginable text element that will be rendered at the specified (x,y) position using the specified font and color. The height of the rendered text will be auto-determined. The width is the available width in page. The Unicode text is supported only for embedded true type fonts. A flag indicating if the font is embedded or not in PDF can be specified when the font is added to PDF document. If the text pagination is not allowed ( Paginate property is false ), the text will be written on current page, the rendered text height being limited by the available height on page. If the text pagination is allowed ( Paginate property is true ) and the text needs pagination (the auto-determined text height is bigger than the available space on page), all the text will be rendered using the necessary height.

Namespace:  EvoPdf.HtmlToPdfClient
Assembly:  EvoHtmlToPdfClient (in EvoHtmlToPdfClient.dll) Version: 9.0.0.0 (9.0.0.0)
Syntax

public TextElement(
	float x,
	float y,
	string text,
	PdfFont font,
	RgbColor textColor
)

Parameters

x
Type: SystemSingle
The start x coordinate where the text will be rendered
y
Type: SystemSingle
The start y coordinate where the text
text
Type: SystemString
The text to be rendered
font
Type: EvoPdf.HtmlToPdfClientPdfFont
The text font. The true type fonts must be embedded in PDF when it is added to the document in order to support Unicode texts.
textColor
Type: EvoPdf.HtmlToPdfClientRgbColor
The text color
See Also

Reference