Guide
A guide.
Class
Read Only
String AFTER_PLACE = afterPlace
Dispatched after a Guide is placed. This event bubbles. This event is not cancelable.
Instance
Read Only
Boolean overridden
If true, the object originated on a master spread and was overridden. If false, the object either originated on a master spread and was not overridden, or the object did not originate on a master page.
Read Only
Mixed overriddenMasterPageItem
An object that originated on a master page and has been overridden. Can return: PageItem, Guide, Graphic, Movie or Sound.
Read Only
Page parentPage
The page on which this page item appears.
Read Only
Number id
The unique ID of the Guide.
Read Only
Boolean isValid
Returns true if the object specifier resolves to valid objects.
Read Only
Mixed parent
The parent of the Guide (a Spread or MasterSpread).
Read Only
Number index
The index of the Guide within its containing object.
Read Only
Events events
A collection of events.
Read Only
EventListeners eventListeners
A collection of event listeners.
Boolean allowOverrides
If true, the master page item can be overridden.
Mixed guideColor
The color of the guide, specified either as an array of three doubles, each in the range 0 to 255 and representing R, G, and B values, or as a UI color. Can return: Array of 3 Reals (0 - 255) or UIColors enumerator.
HorizontalOrVertical orientation
The orientation of the guide.
Measurement Unit (Number or String)=any location
The location at which to place the guide relative to the current ruler zero point.
Boolean fitToPage
If true, horizontal orientation guides stop at the edges of the specified page. If false, the guides extends across the width of the spread and into the pasteboard area.
Number viewThreshold
The view magnification as a percentage below which guides are no longer displayed. (Range: 5.0 to 4000.0)
Boolean locked
If true, the Guide is locked.
Layer itemLayer
The layer that the Guide is on.
GuideTypeOptions guideType
The type of the guide.
Measurement Unit (Number or String)=any guideZone
The zone of the guide.
String label
A property that can be set to any string.
String name
The name of the Guide; this is an alias to the Guide's label property.
Object properties
A property that allows setting of several properties at the same time.
Methods
Mixed override( Page destinationPage )
Overrides a master page item and places the item on the document page as a new object.
Parameters
Type Name Description 
removeOverride()
Removes the override from a previously overridden master page item.
detach()
Detaches an overridden master page item from the master page.
remove()
Deletes the Guide.
move( Measurement Unit (Number or String)=any to, Measurement Unit (Number or String)=any by )
Moves the guide to a new location. Note: Either the to or the by parameter is required; if both parameters are defined, only the to value is used.
Parameters
Type Name Description 
Guide duplicate()
Duplicates the Guide.
TransformationMatrix transformValuesOf( CoordinateSpaces in )
Get the transformation values of the page item.
Parameters
Type Name Description 
Mixed resolve( Mixed location, CoordinateSpaces in, Boolean consideringRulerUnits )
Get the coordinates of the given location in the specified coordinate system.
Parameters
Type Name Description 
select( SelectionOptions existingSelection )
Selects the object.
Parameters
Type Name Description 
insertLabel( String key, String value )
Sets the label to the value associated with the specified key.
Parameters
Type Name Description 
String extractLabel( String key )
Gets the label value associated with the specified key.
Parameters
Type Name Description 
String toSource()
Generates a string which, if executed, will return the Guide.
Guide getElements()
Resolves the object specifier, creating an array of object references.
String toSpecifier()
Retrieves the object specifier.
EventListener addEventListener( String eventType, Mixed handler, Boolean captures )
Adds an event listener.
Parameters
Type Name Description 
Boolean removeEventListener( String eventType, Mixed handler, Boolean captures )
Removes the event listener.
Parameters
Type Name Description