Adobe InCopy CS6 (8.0) Object Model JS: TextFrames

InCopy CS6

Class

TextFrames

 A collection of text frames.

See also TextFrame.

QuickLinks

[], anyItem, count, everyItem, firstItem, item, itemByID, itemByName, itemByRange, lastItem, middleItem, nextItem, previousItem, toSource

Properties

PropertyTypeAccessDescription
lengthnumber readonlyThe number of objects in the collection.

Methods

Instances

TextFrame [] (index: number)
Returns the TextFrame with the specified index.

ParameterTypeDescription
indexnumberThe index.

TextFrame anyItem ()
Returns any TextFrame in the collection.

number count ()
Displays the number of elements in the TextFrame.

Array of TextFrame everyItem ()
Returns every TextFrame in the collection.

TextFrame firstItem ()
Returns the first TextFrame in the collection.

TextFrame item (index: varies)
Returns the TextFrame with the specified index or name.

ParameterTypeDescription
indexLong Integer
String
The index or name. Can accept: Long Integer or String.

TextFrame itemByID (id: number)
Returns the TextFrame with the specified ID.

ParameterTypeDescription
idnumberThe ID.

TextFrame itemByName (name: string)
Returns the TextFrame with the specified name.

ParameterTypeDescription
namestringThe name.

Array of TextFrame itemByRange (from: varies, to: varies)
Returns the TextFrames within the specified range.

ParameterTypeDescription
fromLong Integer
String
TextFrame
The TextFrame, index, or name at the beginning of the range. Can accept: TextFrame, Long Integer or String.
toLong Integer
String
TextFrame
The TextFrame, index, or name at the end of the range. Can accept: TextFrame, Long Integer or String.

TextFrame lastItem ()
Returns the last TextFrame in the collection.

TextFrame middleItem ()
Returns the middle TextFrame in the collection.

TextFrame nextItem (obj: TextFrame)
Returns the TextFrame whose index follows the specified TextFrame in the collection.

ParameterTypeDescription
objTextFrameThe TextFrame whose index comes before the desired TextFrame.

TextFrame previousItem (obj: TextFrame)
Returns the TextFrame with the index previous to the specified index.

ParameterTypeDescription
objTextFrameThe index of the TextFrame that follows the desired TextFrame.

string toSource ()
Generates a string which, if executed, will return the TextFrame.

Element of

Button.textFrames

Cell.textFrames

Character.parentTextFrames

Character.textFrames

CheckBox.textFrames

ComboBox.textFrames

Document.textFrames

Footnote.textFrames

GraphicLine.textFrames

Group.textFrames

InsertionPoint.parentTextFrames

InsertionPoint.textFrames

Layer.textFrames

Line.parentTextFrames

Line.textFrames

ListBox.textFrames

MasterSpread.textFrames

MultiStateObject.textFrames

Oval.textFrames

Page.textFrames

Paragraph.parentTextFrames

Paragraph.textFrames

PlaceGun.textFrames

Polygon.textFrames

RadioButton.textFrames

Rectangle.textFrames

SignatureField.textFrames

SplineItem.textFrames

Spread.textFrames

State.textFrames

Story.textContainers

Story.textFrames

Table.textFrames

Text.parentTextFrames

Text.textFrames

TextBox.textFrames

TextColumn.parentTextFrames

TextColumn.textFrames

TextFrame.textFrames

TextStyleRange.parentTextFrames

TextStyleRange.textFrames

Word.parentTextFrames

Word.textFrames

XmlStory.textContainers

XmlStory.textFrames

Jongware, 29-Apr-2012 v3.0.3iContents :: Index