TextFrames
A collection of text frames.
Go to Property Listing | Method Listing
Methods:
[], add, anyItem, count, everyItem, firstItem, item, itemByID, itemByName, itemByRange, lastItem, middleItem, nextItem, previousItem, toSource
Property Listing
Property |
Type |
Access |
Description |
---|---|---|---|
readonly |
The number of objects in the collection. |
Method Listing
TextFrame [] (index:Number)
Returns the TextFrame with the specified index.
Parameter |
Type |
Description |
---|---|---|
index |
The index. |
TextFrame add (layer:Layer, [at:LocationOptions=LocationOptions], reference:Varies Document Layer MasterSpread Page Spread PageItem, withProperties:Object)
Creates a new TextFrame
Parameter |
Type |
Description |
---|---|---|
layer |
The layer on which to create the TextFrame. (Optional) |
|
at |
The location at which to insert the TextFrame relative to the reference object or within the container object. (Optional) (default: LocationOptions.UNKNOWN) |
|
reference |
The reference object. Note: Required when the at parameter is before or after. Can accept: Document, Spread, MasterSpread, Page, Layer or PageItem. (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 LongInteger String)
Returns the TextFrame with the specified index or name.
Parameter |
Type |
Description |
---|---|---|
index |
LongInteger |
The index or name. Can accept: Long Integer 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 LongInteger TextFrame String, to:Varies LongInteger TextFrame String)
Returns the TextFrames within the specified range.
Parameter |
Type |
Description |
---|---|---|
from |
LongInteger |
The TextFrame, index, or name at the beginning of the range. Can accept: TextFrame, Long Integer or String. |
to |
LongInteger |
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.
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.
Object of
PlaceGun.textFrames
Document.textFrames
Button.textFrames
State.textFrames
MultiStateObject.textFrames
CheckBox.textFrames
ComboBox.textFrames
ListBox.textFrames
RadioButton.textFrames
TextBox.textFrames
SignatureField.textFrames
Layer.textFrames
Spread.textFrames
Page.textFrames
MasterSpread.textFrames
Oval.textFrames
Rectangle.textFrames
GraphicLine.textFrames
Polygon.textFrames
Group.textFrames
SplineItem.textFrames
Snippet.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
EndnoteTextFrame.textFrames
Footnote.textFrames
XmlStory.textFrames