Accusoft.PdfXpress6.Net
AddText Method




An AddTextOptions structure that contains formatting and rendering information for the added text.
Page number to which the text should be added
The text to be added to the document, with new lines delimited by the character '\n' or System.Environment.NewLine.
Adds text to a document using specified formatting and rendering data.
Syntax
'Declaration
 
Public Sub AddText( _
   ByVal addTextOptions As AddTextOptions, _
   ByVal pageNumber As Integer, _
   ByVal text As String _
) 
'Usage
 
Dim instance As Document
Dim addTextOptions As AddTextOptions
Dim pageNumber As Integer
Dim text As String
 
instance.AddText(addTextOptions, pageNumber, text)
public void AddText( 
   AddTextOptions addTextOptions,
   int pageNumber,
   string text
)
public: void AddText( 
   AddTextOptions* addTextOptions,
   int pageNumber,
   string* text
) 
public:
void AddText( 
   AddTextOptions^ addTextOptions,
   int pageNumber,
   String^ text
) 

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.
Remarks

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.

See Also

Reference

Document Class
Document Members

 

 


©2014. Accusoft Corporation. All Rights Reserved.

Send Feedback