Path

A path.

Methods:

getElements, remove, reverse, toSource, toSpecifier

Objects:

Number, Object, PathPoints, PathType,

Property Listing

Property

Type

Access

Description

entirePath

Array of Arrays of 2 Units.

read/write

A 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.

index

Number

readonly

The index of the Path within its containing object.

parent

ClippingPathSettings

GraphicLine

Oval

Polygon

Rectangle

TextFrame

PageItem

TextWrapPreference

readonly

The parent of the Path (a PageItem, Oval, Rectangle, GraphicLine, TextFrame, Polygon, ClippingPathSettings or TextWrapPreference).

pathPoints

PathPoints PathPoint

readonly

A collection of path points.

pathType

PathType

PathType.CLOSED_PATH

PathType.OPEN_PATH

read/write

The path type.

properties

Object

read/write

A property that allows setting of several properties at the same time.

Method Listing

Object getElements ()

Resolves the object specifier, creating an array of object references.

undefined remove ()

Deletes the Path.

undefined reverse ()

Reverses the path.

String toSource ()

Generates a string which, if executed, will return the Path.

String toSpecifier ()

Retrieves the object specifier.

Object of

PathPoint.parent

Return

Paths.add()

Paths.anyItem()

Paths.everyItem()

Paths.nextItem()

Paths.previousItem()

Paths.item()

Paths.itemByName()

Paths.itemByRange()

Paths.firstItem()

Paths.lastItem()

Paths.middleItem()