FrameCollection Object
Description
Contains all frames of a Text Control document or part of the document.
Syntax
FrameCollectionExamples
The following example demonstrates FrameCollection in a practical document-editing workflow. It contains all frames of a Text Control document or part of the document.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
function inspectFrameCollection(frames) {
frames.getItem(
function(frame) {
if (!frame) {
console.warn("No frame base was returned.");
return;
}
console.log("get item result:", frame);
},
onTxError,
25
);
}Members
Methods
| Method | Description |
|---|---|
| clear | Removes all objects from the collection and from the document. (Inherited from FrameBaseCollection.) |
| getItem | Gets the frame selected by the user or the frame with the specified identifier. |
| getItemByName | Gets the frame with the specified name. |
| remove | Removes a frame from a Text Control document. |