Edit in GitHubLog an issue

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 clipboard
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:

Copied to your clipboard
app.activeDocument.guides.add(Constants.Direction.HORIZONTAL, 20);

Properties#

NameTypeAccessDescription
lengthnumberRead-onlyNumber of Guide elements in this collection
parentDocumentRead-onlyThe owner document of this Guide collection

Methods#

add#

void

Adds a guide for the collection at the given coordinate and direction

Parameters#

NameType
directionDirection
coordinatenumber

removeAll#

void

Clears all guides from this collection

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