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:
app.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:
app.activeDocument.guides.add(Constants.Direction.HORIZONTAL, 20);
Properties
Methods
add
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.0</span>
<br/> Guide
Adds a guide for the collection at the given coordinate and direction
Fixes in Photoshop 24.0:
- Correct coordinate when resolution is not 72 PPI
- Returns valid instance of guide
Parameters
coordinateremoveAll
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.0</span>
<br/> void
Clears all guides from this collection.