Click or drag to resize
Pdf Library for .NET

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

Creates a text element at (x, y) with the specified width, text, font, and color. The height is auto-determined (content paginates across pages if needed).

Namespace: SelectPdf.Universal
Assembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.4
Syntax
public PdfTextElement(
	float x,
	float y,
	float width,
	string text,
	PdfFont font,
	PdfColor color
)

Parameters

x  Single
The X coordinate, in client-area coordinates.
y  Single
The Y coordinate, in client-area coordinates.
width  Single
The width of the text layout rectangle.
text  String
The text to render.
font  PdfFont
The font used to render the text.
color  PdfColor
The text color.
See Also