AppendParagraph Method |
[Top] [Chapter] [Previous] [Next] |
Applies to Declaration IWPParInterface AppendParagraph(); Description This method appends a new paragraph to this text block and returns an IWPParInterface reference which can be used to manipulate this new paragraph. While it is easier to use the TextCursor methods to create a new header or footer, this method can be ideal to on the fly modify the text in header or footer since the cursor position does not have to be changed.
This header was created using the following C# code.
If you need to create a second line you can use the API AppendNext:
It is also possible to create a new table. (The IWPParInterface is a working interface, it always works on one paragraph. This paragraph can also be selected using the method SetPtr. AppendNext will automatically select the new paragraph.)
Please note that it is not possible to change the text in custom paint events. Category |