Writing in rich text items in LotusScript® classes
To create a new rich text item, use NotesDocument.CreateRichTextItem or the New method of NotesRichTextItem . These methods create an empty item. Use the methods that write to a rich text item to add content. See the topics that tell you how to:
- Work with text
- Work with attachments and embedded objects
- Work with tables
- Work with doclinks
- Work with sections
By default, the insertion point for modifications is the end of an item. To change the insertion point, use BeginInsert and EndInsert.
After creating or modifying a rich text item, call the Save method of NotesDocument.
You can compact and update a rich text item.
Updates to rich text items accessed through NotesUIDocument are not immediately incorporated into the NotesUIDocument object. You must close and open the document to see the updates.