Visual Basic
C#
Managed Extensions for C++
C++/CLI
Parameters
- addTextOptions
- An AddTextOptions structure that contains formatting and rendering information for the added text.
- pageNumber
- Page number to which the text should be added
- text
- The text to be added to the document, with new lines delimited by the character '\n' or System.Environment.NewLine.
This feature is only available in the Professional edition.
A font is chosen automatically from the parameters in the AddTextOptions structure when this is called. Currently, only Type 1 fonts are chosen, and the only guarantees of the font chosen are that it will be the correct size and that all glyphs in the text will be supported by the font. If FontFamily.Serif or FontFamily.SansSerif is chosen, a proportional width font will be preferred. Font style is given precedence over weight or decoration. Only Roman characters are currently supported.
If no valid font is found, a NoValidFontFoundException will be raised. If the text would exceed page bounds, a TextOutOfBoundsException will be raised and no text will be added.