Edit in GitHubLog an issue

PathItems

The collection of PathItem objects in a document.

Access through the Document.pathItems collection property. To create new paths, see PathPointInfo and SubPathInfo classes and pass them to PathItems.add() method.

Added in Photoshop 23.3

Indexable#

▪ [index: number]: PathItem

Used to access the paths in the collection

Access through the Document.pathItems collection property. To create new paths, see PathPointInfo and SubPathInfo classes and pass them to PathItems.add() method.

Added in Photoshop 23.3

Properties#

NameTypeAccessDescription
lengthnumberRead-onlyNumber of PathItem objects in this collection
parentDocumentRead-onlyThe owner document of this PathItem collection

Methods#

add#

PathItem

Creates a new path item object and adds it to this collection.

A new SubPathItem object is created for each SubPathInfo object provided in entirePath, and those SubPathItem objects are added to the PathItem.subPathItems collection of the returned PathItem.

Parameters#

NameType
namestring
entirePathSubPathInfo[]

getByName#

PathItem

Parameters#

NameType
namestring

removeAll#

void

Removes all paths from this collection

  • Privacy
  • Terms of Use
  • Do not sell my personal information
  • AdChoices
Copyright © 2022 Adobe. All rights reserved.