Guide
QuickLinks
Hierarchy
Properties
Property | Type | Access | Description |
---|---|---|---|
allowOverrides | bool | r/w | If true, the master page item can be overridden. |
eventListeners | EventListeners EventListener | readonly | A collection of event listeners. |
events | Events Event | readonly | A collection of events. |
fitToPage | bool | readonly | 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. |
guideColor | 3 Reals (0 - 255) UIColors |
readonly | 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. |
guideType | GuideTypeOptions: GuideTypeOptions.RULER GuideTypeOptions.LIQUID |
readonly | The type of the guide. |
guideZone | Measurement Unit (Number or String) | readonly | The zone of the guide. |
id | number | readonly | The unique ID of the Guide. |
index | number | readonly | The index of the Guide within its containing object. |
isValid | bool | readonly | Returns true if the object specifier resolves to valid objects. |
itemLayer | Layer | readonly | The layer that the Guide is on. |
label | string | r/w | A property that can be set to any string. |
location | Measurement Unit (Number or String) | readonly | The location at which to place the guide relative to the current ruler zero point. |
locked | bool | readonly | If true, the Guide is locked. |
name | string | r/w | The name of the Guide; this is an alias to the Guide's label property. |
orientation | HorizontalOrVertical: HorizontalOrVertical.HORIZONTAL HorizontalOrVertical.VERTICAL |
readonly | The orientation of the guide. |
overridden | bool | readonly | 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. |
overriddenMasterPageItem | Graphic Guide Movie PageItem Sound |
readonly | An object that originated on a master page and has been overridden. Can return: PageItem, Guide, Graphic, Movie or Sound. |
parent | MasterSpread Spread |
readonly | The parent of the Guide (a Spread or MasterSpread). |
parentPage | Page | readonly | The page on which this page item appears. |
properties | Object | r/w | A property that allows setting of several properties at the same time. |
viewThreshold | number (range: 5 - 4000) | readonly | The view magnification as a percentage below which guides are no longer displayed. (Range: 5.0 to 4000.0) |
Class
Property | Type | Access | Description |
---|---|---|---|
AFTER_PLACE | string | readonly | Dispatched after a Guide is placed. This event bubbles. This event is not cancelable. (default: afterPlace) |
Methods
Instances
EventListener addEventListener (eventType:
string, handler:
varies[, captures:
bool=false])
Adds an event listener.
Parameter | Type | Description |
---|---|---|
eventType | string | The event type. |
handler | File JavaScript Function | The event handler. Can accept: File or JavaScript Function. |
captures | bool | This parameter is obsolete. (Optional) (default: false) |
string extractLabel (key:
string)
Gets the label value associated with the specified key.
Parameter | Type | Description |
---|---|---|
key | string | The key. |
Array
of Guide getElements ()
Resolves the object specifier, creating an array of object references.
void insertLabel (key:
string, value:
string)
Sets the label to the value associated with the specified key.
Parameter | Type | Description |
---|---|---|
key | string | The key. |
value | string | The value. |
bool removeEventListener (eventType:
string, handler:
varies[, captures:
bool=false])
Removes the event listener.
Parameter | Type | Description |
---|---|---|
eventType | string | The registered event type. |
handler | File JavaScript Function | The registered event handler. Can accept: File or JavaScript Function. |
captures | bool | This parameter is obsolete. (Optional) (default: false) |
string toSource ()
Generates a string which, if executed, will return the Guide.
Element of
Button.overriddenMasterPageItem
CheckBox.overriddenMasterPageItem
ComboBox.overriddenMasterPageItem
EPS.overriddenMasterPageItem
EPSText.overriddenMasterPageItem
FormField.overriddenMasterPageItem
Graphic.overriddenMasterPageItem
GraphicLine.overriddenMasterPageItem
Group.overriddenMasterPageItem
Guide.overriddenMasterPageItem
HtmlItem.overriddenMasterPageItem
Image.overriddenMasterPageItem
ImportedPage.overriddenMasterPageItem
ListBox.overriddenMasterPageItem
MediaItem.overriddenMasterPageItem
Movie.overriddenMasterPageItem
MultiStateObject.overriddenMasterPageItem
Oval.overriddenMasterPageItem
PDF.overriddenMasterPageItem
PICT.overriddenMasterPageItem
PageItem.overriddenMasterPageItem
Polygon.overriddenMasterPageItem
RadioButton.overriddenMasterPageItem
Rectangle.overriddenMasterPageItem
SignatureField.overriddenMasterPageItem
Sound.overriddenMasterPageItem
SplineItem.overriddenMasterPageItem
TextBox.overriddenMasterPageItem
TextFrame.overriddenMasterPageItem
WMF.overriddenMasterPageItem
Used in:
Guide Guides.nextItem (obj: Guide)
Guide Guides.previousItem (obj: Guide)
Return
Array of Guide Guide.getElements ()
Guide Guides.[] (index: number)
Guide Guides.anyItem ()
Array of Guide Guides.everyItem ()
Guide Guides.firstItem ()
Guide Guides.item (index: varies)
Guide Guides.itemByID (id: number)
Guide Guides.itemByName (name: string)
Array of Guide Guides.itemByRange (from: varies, to: varies)
Guide Guides.lastItem ()
Guide Guides.middleItem ()
Guide Guides.nextItem (obj: Guide)
Guide Guides.previousItem (obj: Guide)
Jongware, 29-Apr-2012 v3.0.3i | Contents :: Index |