Adobe InDesign CS2 (4.0) Object Model JS: PathPoint

InDesign CS2

Class

PathPoint

 A path point of a path.

QuickLinks

getElements, remove, toSource, toSpecifier

Hierarchy

Path
PathPoint

Properties

PropertyTypeAccessDescription
anchor Array of Measurement Unit (Number or String) r/wThe location of the path point on the page, in the format [x, y].
indexnumber readonlyThe index of the PathPoint within its containing object.
leftDirection Array of Measurement Unit (Number or String) r/wThe left-direction point, which controls the curve of the line segment preceding the path point on the path, in the format [x, y].
parentPath readonlyThe parent of the PathPoint (a Path).
pointTypePointType:
PointType.LINE_TYPE
PointType.SMOOTH
PointType.CORNER
r/wThe path point type.
propertiesObject r/wA property that allows setting of several properties at the same time.
rightDirection Array of Measurement Unit (Number or String) r/wThe right-direction point, which controls the curve of the line segment following the path point on the path, in the format [x, y].

Methods

Instances

Array of Object getElements ()
Resolves the object specifier, creating an array of object references.

void remove ()
Deletes the PathPoint.

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

string toSpecifier ()
Retrieves the object specifier.

Used in:

array of PathPoint PathPoints.itemByRange (from: any, to: any)

PathPoint PathPoints.nextItem (obj: PathPoint)

PathPoint PathPoints.previousItem (obj: PathPoint)

Return

PathPoint PathPoints.add ([withProperties: Object])

PathPoint PathPoints.anyItem ()

Array of PathPoint PathPoints.everyItem ()

PathPoint PathPoints.firstItem ()

PathPoint PathPoints.item (index: any)

PathPoint PathPoints.itemByName (name: string)

Array of PathPoint PathPoints.itemByRange (from: any, to: any)

PathPoint PathPoints.lastItem ()

PathPoint PathPoints.middleItem ()

PathPoint PathPoints.nextItem (obj: PathPoint)

PathPoint PathPoints.previousItem (obj: PathPoint)

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