LOTUSSCRIPT/COM/OLE CLASSES


Navigating in rich text items in LotusScript classes
Example

Use NotesDocument.GetFirstItem or NotesDocument.Items to access an item as a rich text item. Declare the return value as NotesRichTextItem not NotesItem.

For navigation, a rich text item is a collection of elements of various types accessible through NotesRichTextNavigator. You can find (navigate to) all types of elements. You can get some types of elements as objects; others you cannot get but must access through NotesRichTextRange. The element types are:


Use NotesRichTextItem.CreateNavigator or NotesRichTextRange.Navigator to create a NotesRichTextNavigator object.

Navigation is within elements of the same type. You can find or get the first element of a type, the next element of a type, and the nth element of a type. You cannot find or get an element regardless of type.

The navigator maintains a current position. Both find and get operations change the current position in the rich text item.

NotesRichTextNavigator has the following methods:


Example
See Also