TextFrames
QuickLinks
Properties
Property | Type | Access | Description |
---|---|---|---|
length | number | readonly | The number of objects in the collection. |
Methods
Instances
TextFrame add ([layer:
Layer][, at:
LocationOptions=LocationOptions.UNKNOWN][, reference:
any][, withProperties:
Object])
Create a new TextFrame
Parameter | Type | Description |
---|---|---|
layer | Layer | The layer on which to create the TextFrame. (Optional) |
at | LocationOptions: LocationOptions.BEFORE LocationOptions.AFTER LocationOptions.AT_END LocationOptions.AT_BEGINNING LocationOptions.UNKNOWN | Location (Optional) (default: LocationOptions.UNKNOWN) |
reference | Document Layer MasterSpread Page Spread | 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 | Object | 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.
Array
of TextFrame everyItem ()
Returns every TextFrame in the collection.
TextFrame firstItem ()
Returns the first TextFrame in the collection.
TextFrame item (index:
any)
Returns the TextFrame with the specified index or name.
Parameter | Type | Description |
---|---|---|
index | Long String | The index or name. Can accept: Long or String. |
TextFrame itemByID (id:
number)
Returns the TextFrame with the specified ID.
Parameter | Type | Description |
---|---|---|
id | number | The ID. |
TextFrame itemByName (name:
string)
Returns the TextFrame with the specified name.
Parameter | Type | Description |
---|---|---|
name | string | The name. |
Array
of TextFrame itemByRange (from:
any, to:
any)
Returns the TextFrames within the specified range.
Parameter | Type | Description |
---|---|---|
from | Long String TextFrame | The TextFrame, index, or name at the beginning of the range. Can accept: TextFrame, Long or String. |
to | Long String TextFrame | 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 | TextFrame | 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 | TextFrame | The 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
Document.textFrames
Footnote.textFrames
GraphicLine.textFrames
Group.textFrames
InsertionPoint.parentTextFrames
InsertionPoint.textFrames
Layer.textFrames
Line.parentTextFrames
Line.textFrames
MasterSpread.textFrames
Oval.textFrames
Page.textFrames
PageItem.textFrames
Paragraph.parentTextFrames
Paragraph.textFrames
Polygon.textFrames
Rectangle.textFrames
Spread.textFrames
State.textFrames
Story.textFrames
Table.textFrames
Text.parentTextFrames
Text.textFrames
TextColumn.parentTextFrames
TextColumn.textFrames
TextFrame.textFrames
TextStyleRange.parentTextFrames
TextStyleRange.textFrames
Word.parentTextFrames
Word.textFrames
Jongware, 27-Jun-2010 v3.0.3d | Contents :: Index |