|
PdfTextSection Constructor (Single, Single, Single, Single, String, Font, Color) |
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: 24.1
Syntax public PdfTextSection(
float x,
float y,
float width,
float height,
string text,
Font font,
Color color
)
Public Sub New (
x As Single,
y As Single,
width As Single,
height As Single,
text As String,
font As Font,
color As Color
)
Parameters
- x
- Type: SystemSingle
The start X coordinate where the text will be rendered. - y
- Type: SystemSingle
The start Y coordinate where the text will be rendered. - width
- Type: SystemSingle
The width of the destination rectangle. - height
- Type: SystemSingle
The height of the destination rectangle. - text
- Type: SystemString
The text to be rendered. - font
- Type: System.DrawingFont
The text font. - color
- Type: System.DrawingColor
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 and height of the text on the destination page are also specified.
See Also