Adobe InDesign CS (3.0) Object Model JS: Path

InDesign CS

Class

Path

 A path.

QuickLinks

remove, reverse

Hierarchy

ClippingPathSettings | GraphicLine | Oval | PageItem | Polygon | Rectangle | TextFrame | TextWrapPreference
Path
PathPoint

Properties

PropertyTypeAccessDescription
entirePath Array of
Arrays of 2 Units
r/wA list of the coordinates of all of the path points on the path, including anchor points and left- and right-direction points. When creating a path using this property, supply either a list of anchor point coordinates ([[x1, y1], [x2, y2], ...]) or a list of anchor point, left-direction point, and right-direction point coordinates ([[[x1, y1], [x2, y2], [x3, y3]], [[x4, y4], [x5, y5], [x6, y6]], ...]). Note: Providing only anchor points results in a path on which all of the path points are connected with straight line segments; supplying the positions of left- and right-direction points specifies curved line segments. Can return: Array of Arrays of 2 Units.
indexnumber readonlyThe index of the Path within its containing object.
parentClippingPathSettings
GraphicLine
Oval
PageItem
Polygon
Rectangle
TextFrame
TextWrapPreference
readonlyThe parent of the Path (a PageItem, Oval, Rectangle, GraphicLine, TextFrame, Polygon, ClippingPathSettings or TextWrapPreference).
pathPointsPathPoints readonlyA collection of path points.
pathTypePathType:
PathType.OPEN_PATH
PathType.CLOSED_PATH
r/wThe path type.
propertiesObject r/wA property that allows setting of several properties at the same time.

Methods

Instances

void remove ()
Deletes the Path.

void reverse ()
Reverses the path.

Element of

PathPoint.parent

Return

Path Paths.add ([withProperties: Object])

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