A collection of text frames.
Go to Property Listing | Method Listing
add, anyItem, count, everyItem, firstItem, item, itemByID, itemByName, itemByRange, lastItem, middleItem, nextItem, previousItem, toSource
|
Property |
Type |
Access |
Description |
|---|---|---|---|
|
readonly |
The number of objects in the collection. |
TextFrame add (layer:Layer, [at:LocationOptions=LocationOptions], reference:Varies Document MasterSpread Page Spread Layer, withProperties:Object)
Create a new TextFrame
|
Parameter |
Type |
Description |
|---|---|---|
|
layer |
The layer on which to create the TextFrame. (Optional) |
|
|
at |
Location (Optional) (default: LocationOptions.UNKNOWN) |
|
|
reference |
Before/after this TextFrame or at the beginning/end of this Document, Spread, Master Spread, Page or Layer. Can accept: Document, Spread, MasterSpread, Page or Layer. (Optional) |
|
|
withProperties |
Initial values for properties of the new TextFrame (Optional) |
TextFrame anyItem ()
Returns any TextFrame in the collection.
Number count ()
Displays the number of elements in the TextFrame.
TextFrame everyItem ()
Returns every TextFrame in the collection.
TextFrame firstItem ()
Returns the first TextFrame in the collection.
TextFrame item (index:Varies Long String)
Returns the TextFrame with the specified index or name.
|
Parameter |
Type |
Description |
|---|---|---|
|
index |
Long |
The index or name. Can accept: Long or String. |
TextFrame itemByID (id:Number)
Returns the TextFrame with the specified ID.
|
Parameter |
Type |
Description |
|---|---|---|
|
id |
The ID. |
TextFrame itemByName (name:String)
Returns the TextFrame with the specified name.
|
Parameter |
Type |
Description |
|---|---|---|
|
name |
The name. |
TextFrame itemByRange (from:Varies Long TextFrame String, to:Varies Long TextFrame String)
Returns the TextFrames within the specified range.
|
Parameter |
Type |
Description |
|---|---|---|
|
from |
Long |
The TextFrame, index, or name at the beginning of the range. Can accept: TextFrame, Long or String. |
|
to |
Long |
The TextFrame, index, or name at the end of the range. Can accept: TextFrame, Long 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.
|
Parameter |
Type |
Description |
|---|---|---|
|
obj |
The TextFrame whose index comes before the desired TextFrame. |
TextFrame previousItem (obj:TextFrame)
Returns the TextFrame with the index previous to the specified index.
|
Parameter |
Type |
Description |
|---|---|---|
|
obj |
The index of the TextFrame that follows the desired TextFrame. |
String toSource ()
Generates a string which, if executed, will return the TextFrame.
Document.textFrames
Button.textFrames
State.textFrames
Layer.textFrames
Spread.textFrames
Page.textFrames
MasterSpread.textFrames
PageItem.textFrames
Oval.textFrames
Rectangle.textFrames
GraphicLine.textFrames
Polygon.textFrames
Group.textFrames
Cell.textFrames
Table.textFrames
Text.textFrames
Character.textFrames
Word.textFrames
Line.textFrames
TextColumn.textFrames
Paragraph.textFrames
TextStyleRange.textFrames
InsertionPoint.textFrames
TextFrame.textFrames
Story.textFrames
Footnote.textFrames