Adobe InDesign CS (3.0) Object Model JS: Guide

InDesign CS

Class

Guide

 A guide.

QuickLinks

extractLabel, insertLabel, override, remove, removeOverride, select

Hierarchy

Document | Layer | MasterSpread | Page | Spread
Guide

Properties

PropertyTypeAccessDescription
fitToPagebool r/wIf 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.
guideColor3 Reals (0 - 255)
UIColors
r/wThe 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.
idnumber readonlyThe unique ID of the Guide.
indexnumber readonlyThe index of the Guide within its containing object.
itemLayerLayer r/wThe layer that the Guide is on.
labelstring r/wA property that can be set to any string.
locationMeasurement Unit (Number or String) r/wThe location at which to place the guide relative to the current ruler zero point.
lockedbool r/wIf true, the Guide is locked.
orientationHorizontalOrVertical:
HorizontalOrVertical.HORIZONTAL
HorizontalOrVertical.VERTICAL
r/wThe orientation of the guide.
parentDocument
Layer
MasterSpread
Page
Spread
readonlyThe parent of the Guide (a Page, Document, Layer, Spread or MasterSpread).
propertiesObject r/wA property that allows setting of several properties at the same time.
viewThresholdnumber r/wThe guide's view threshold

Methods

Instances

string extractLabel (key: string)
Gets the label value associated with the specified key.

ParameterTypeDescription
keystringThe key.

void insertLabel (key: string, value: string)
Sets the label to the value associated with the specified key.

ParameterTypeDescription
keystringThe key.
valuestringThe value.

PageItem override (destinationPage: Page)
Overrides a master page item and places it on the page

ParameterTypeDescription
destinationPagePageThe document page on which the master page item will be overridden.

void remove ()
Deletes the Guide.

void removeOverride ()
Removes the override from a previously overridden master page item.

void select ([existingSelection: SelectionOptions=SelectionOptions.REPLACE])
Select this object.

ParameterTypeDescription
existingSelectionSelectionOptions:
SelectionOptions.ADD_TO
SelectionOptions.REMOVE_FROM
SelectionOptions.REPLACE
How to handle the existing selection (Optional) (default: SelectionOptions.REPLACE)

Return

Guide Guides.add ([layer: Layer][, withProperties: Object])

Jongware, 27-Jun-2010 v3.0.3dContents :: Index