Click or drag to resize
Pdf Library for .NET

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

Creates a text element at (x, y) with the specified width, height, text, font, and color.

Namespace: SelectPdf.Universal
Assembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.4
Syntax
public PdfTextElement(
	float x,
	float y,
	float width,
	float height,
	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.
height  Single
The height of the text layout rectangle. Text that exceeds this height is returned via RemainingText.
text  String
The text to render.
font  PdfFont
The font used to render the text.
color  PdfColor
The text color.
See Also