Edit in GitHubLog an issue

Guides

A collection of guides.

Instance

Read Only

Number length

The number of objects in the collection.

Methods

Guide add( Layer layer, Object withProperties )

Creates a new guide.

Parameters

TypeNameDescription
Layer
layer
The layer on which to create the guide. (Optional)
Object
withProperties
Initial values for properties of the new Guide (Optional)

Number count()

Displays the number of elements in the Guide.


Guide item( Mixed index )

Returns the Guide with the specified index or name.

Parameters

TypeNameDescription
Mixed
index
The index or name. Can accept: Long Integer or String.

Guide itemByName( String name )

Returns the Guide with the specified name.

Parameters

TypeNameDescription
String
name
The name.

Guide itemByID( Number id )

Returns the Guide with the specified ID.

Parameters

TypeNameDescription
Number
id
The ID.

Guide itemByRange( Mixed from, Mixed to )

Returns the Guides within the specified range.

Parameters

TypeNameDescription
Mixed
from
The Guide, index, or name at the beginning of the range. Can accept: Guide, Long Integer or String.
Mixed
to
The Guide, index, or name at the end of the range. Can accept: Guide, Long Integer or String.

Guide firstItem()

Returns the first Guide in the collection.


Guide lastItem()

Returns the last Guide in the collection.


Guide middleItem()

Returns the middle Guide in the collection.


Guide previousItem( Guide obj )

Returns the Guide with the index previous to the specified index.

Parameters

TypeNameDescription
Guide
obj
The index of the Guide that follows the desired Guide.

Guide nextItem( Guide obj )

Returns the Guide whose index follows the specified Guide in the collection.

Parameters

TypeNameDescription
Guide
obj
The Guide whose index comes before the desired Guide.

Guide anyItem()

Returns any Guide in the collection.


Guide everyItem()

Returns every Guide in the collection.


String toSource()

Generates a string which, if executed, will return the Guide.


Guide []( Number index )

Returns the Guide with the specified index.

Parameters

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