Click or drag to resize
Pdf Library for .NET

PdfTextSection(Single, Single, Single, String, Font, Color) Constructor

Creates a text object that can be added to the header or footer templates of a pdf document.

Namespace: SelectPdf
Assembly: Select.Pdf (in Select.Pdf.dll) Version: 26.2
Syntax
public PdfTextSection(
	float x,
	float y,
	float width,
	string text,
	Font font,
	Color color
)

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.
text  String
The text to be rendered.
font  Font
The text font.
color  Color
The text color.
Remarks
The text element that will be rendered at the specified (x,y) position in the pdf header or footer using the specified font and color. The width of the text is specified as parameter. The height of the rendered text will be auto-determined.
See Also