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.

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.

Properties

名称类型访问最低版本描述
lengthnumberR23.3Number of PathItem objects in this collection.
parentDocumentR23.3The owner document of this PathItem collection.

Methods

add

23.3

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

名称类型
namestring
entirePathSubPathInfo[]

getByName

23.3

PathItem

Retrieve the first PathItem matching the given name.

Parameters

名称类型描述
namestringName to find

removeAll

23.3

void

Removes all paths from this collection.

Was this helpful?
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2023 Adobe. All rights reserved.