All As rtCollection
docLinks As rtEnumeration
hotspots As rtEnumeration
sections As rtEnumeration
Style As rtStyle
tables As rtEnumeration
textRuns As rtEnumeration
Acts as a container for rich text objects. Used for retrieval and writing the data to and from rich text item. And is the key for all other stuff.
The content may be accessed either as a collection of all objects using All property or using searching and filtering functionalities (Find/Replace), or by navigation using getFirstElement, getNextElement methods.
The most important object groups like hotspots, doclinks, tables, sections and text runs are available as rtEnumeration objects using respective Hotspots, Doclinks, Tables, Sections and TextRuns properties.
Property Collection may also be used for obtaining a targeted collection using parameters: PARSE_GROUP_GRAPHIC, PARSE_GROUP_HOTSPOT, PARSE_GROUP_TEXT, PARSE_GROUP_TABLE, PARSE_GROUP_ANCHOR, PARSE_GROUP_SECTION, PARSE_GROUP_LINKS or their combination to obtain the object collections.
The rtContainer class has methods for finding (and replacing) text - Find, FindNext and Replace. You may use either plain text (with parameter defining case sensitivity) or wildcards as used by lotusScript Like operator.
Find methods return an object of rTextRange class, that may be used either to replace the selected text using Insert method of this class, or inserting text or objects before or after the found piece of text preliminary using Collapse method. To insert object use Insert method of the rTextRange.
Alternatively you can insert objects using Add method together with BeginInsert property and/or EndInsert method.