RichTextNavigator (Java)

Represents a means of navigation in a rich text item.

Note: This class is new with Release 6.5.

Containment

Contained by: RichTextItem

Contains: RichTextDocLink, RichTextSection, RichTextTable

Methods

Clone

findFirstElement

findFirstString

findLastElement

findNextElement

findNextString

findNthElement

getElement

getFirstElement

getLastElement

getNextElement

getNthElement

recycle

setCharOffset

setPosition

setPositionAtEnd

Creation

To create a new RichTextNavigator object, use the createNavigator method in RichTextItem or the Navigator property in RichTextRange.

Usage

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.

Example