Guides
A collections class allowing for array access into a document's guides
Access this collection through Document.guides property. For example, following adds a new guide to the collection:
Copied to your clipboardapp.activeDocument.guides.add(Constants.Direction.HORIZONTAL, 20);
Indexable#
â–ª [index: number]: Guide
Used to access the guides in the collection
Access this collection through Document.guides property. For example, following adds a new guide to the collection:
Copied to your clipboardapp.activeDocument.guides.add(Constants.Direction.HORIZONTAL, 20);
Properties#
Name | Type | Access | Description |
---|---|---|---|
length | number | Read-only | Number of Guide elements in this collection |
parent | Document | Read-only | The owner document of this Guide collection |
Methods#
add#
void
Adds a guide for the collection at the given coordinate and direction
Parameters#
Name | Type |
---|---|
direction | Direction |
coordinate | number |
removeAll#
void
Clears all guides from this collection