Interactive editor
Explore TextParts
Retrieve and manipulate the main text, text frames and header or footer text parts.
Ready to tryUse the controls above to interact with this demo.
What this demonstrates
TextParts
Retrieve and manipulate the main text, text frames and header or footer text parts.
API used
TXTextControl.textParts
How it works
TextParts.getCount and elementAt enumerate the main text, headers, footers, and text frames through callbacks. Each TextPart exposes its own Selection, allowing text to be inserted into every document story.
Source files
See the implementation
The view, browser behavior, and controller are encapsulated in Demos/RichTextEditor/Editing/TextParts.