PhotoshopCC 2015.5
Object

PathItem

A path or drawing object, such as the outline of a shape or a straight or curved line, which contains sub paths that comprise its geometry.

Properties

NameType AccessDescription
PathKind
read/write The type of path.
String read/write The name of the path item.
The readonly The object's container.
SubPathItems<SubPathItem> readonly The sub path objects for this path item.
String readonly The class name of the object.

Methods

void

Unselects the selection, no path items are selected.

PathItem

Duplicates this path item.

name? String The name for the new path.
void

Fills the area enclosed by the path.

fillColor? Varies The color of the fill for this path.
mode? ColorBlendMode The blending mode of the fill for this path.
opacity? Number The opacity of the fill for this path (as a percentage). Range: 0.0 to 100.0.
preserveTransparency? Boolean If true, transparency is preserved.
feather? Number The feather amount in pixels. Range: 0.0 to 250.0.
antiAlias? Boolean If true, uses anti-aliasing for the selection.
wholePath? Boolean If true, uses all subpaths when doing the fill.
void

Makes this path item the clipping path for this document.

flatness? Number Flatness in device pixels; tells the PostScript printer how to approximate curves. Range: 0.2 to 100).
void

Makes a selection object, whose border is the path, from this path item object.

feather? Number The feather amount in pixels. Range: 0.0 to 250.0.
antiAlias? Boolean If true, the selection uses anti-aliasing.
operation? SelectionType The selection behavior relative to the existing selection (when a selection already exists).
void

Deletes this object.

void

Deletes all elements.

void

Makes this path item the active or selected path item.

void

Strokes the path.

tool? ToolType The tool to use when stroking the path.
simulatePressure? Boolean If true, simulates the pressure when using the tool.

Return 6

Methods that return a PathItem.