 |
PdfTextElement(Single, Single, Single, String, PdfFont, PdfColor) Constructor |
Creates a text object that can be added to a pdf document.
Namespace: SelectPdfAssembly: Select.Pdf (in Select.Pdf.dll) Version: 26.2
Syntaxpublic PdfTextElement(
float x,
float y,
float width,
string text,
PdfFont font,
PdfColor color
)
Public Sub New (
x As Single,
y As Single,
width 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.
- text String
- The text to be rendered.
- font PdfFont
- The text font. To support Unicode texts, the true type fonts must be embedded in the pdf document when they are added.
- color PdfColor
- The text color.
Remarks
The text element that will be rendered at the specified (x,y) position 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