 |
PdfTextSection(Single, Single, Single, Single, String, PdfFont, PdfColor) Constructor |
Creates a text object that can be added to the header or footer templates of a pdf document.
Namespace: SelectPdf.UniversalAssembly: SelectPdf.HtmlToPdf.Universal (in SelectPdf.HtmlToPdf.Universal.dll) Version: 26.4
Syntaxpublic PdfTextSection(
float x,
float y,
float width,
float height,
string text,
PdfFont font,
PdfColor color
)
Public Sub New (
x As Single,
y As Single,
width As Single,
height As Single,
text As String,
font As PdfFont,
color As PdfColor
)
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.
- color PdfColor
- The text color.
Remarks
The text element will be rendered at the specified (x,y) position in the pdf header or footer using the specified font and color.
The width and height of the text on the destination page are also specified.
See Also