Adobe InDesign CS3 (5.0) Object Model JS: TextPaths

InDesign CS3

Class

TextPaths

 A collection of text paths.

QuickLinks

add, 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

TextPath add ([withProperties: Object])
Creates a new TextPath.

ParameterTypeDescription
withPropertiesObjectInitial values for properties of the new TextPath (Optional)

TextPath anyItem ()
Returns any TextPath in the collection.

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

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

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

TextPath item (index: any)
Returns the TextPath with the specified index or name.

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

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

ParameterTypeDescription
idnumberThe ID.

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

ParameterTypeDescription
namestringThe name.

Array of TextPath itemByRange (from: any, to: any)
Returns the TextPaths within the specified range.

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

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

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

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

ParameterTypeDescription
objTextPathThe TextPath whose index comes before the desired TextPath.

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

ParameterTypeDescription
objTextPathThe index of the TextPath that follows the desired TextPath.

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

Element of

Character.parentTextFrames

GraphicLine.textPaths

InsertionPoint.parentTextFrames

Line.parentTextFrames

Oval.textPaths

PageItem.textPaths

Paragraph.parentTextFrames

Polygon.textPaths

Rectangle.textPaths

Story.textContainers

Text.parentTextFrames

TextColumn.parentTextFrames

TextFrame.textPaths

TextStyleRange.parentTextFrames

Word.parentTextFrames

XmlStory.textContainers

Jongware, 27-Jun-2010 v3.0.3dContents :: Index