Grid preferences.
Go to Property Listing | Method Listing
toSource, getElements, toSpecifier, addEventListener, removeEventListener
Application, BaselineGridRelativeOption, Boolean, Document, EventListeners, Events, Number, Object, String, UIColors,
|
Property |
Type |
Access |
Description |
|---|---|---|---|
|
baselineColor |
Array of 3 Reals (0 - 255) |
read/write |
The color of the baseline grid, specified either as an array of three doubles, each in the range 0 to 255, representing R, G, and B values, or as a UI color. . Can return: Array of 3 Reals (0 - 255) or UIColors enumerator. |
|
baselineDivision |
read/write |
The amount of space between baseline grid lines. |
|
|
baselineGridRelativeOption |
BaselineGridRelativeOption.TOP_OF_PAGE_OF_BASELINE_GRID_RELATIVE_OPTION BaselineGridRelativeOption.TOP_OF_MARGIN_OF_BASELINE_GRID_RELATIVE_OPTION |
read/write |
The zero point for the baseline grid offset. |
|
baselineGridShown |
read/write |
If true, displays the baseline grid. |
|
|
baselineStart |
read/write |
The amount to offset the baseline grid from the zero point. |
|
|
baselineViewThreshold |
Number (range 5 - 4000) |
read/write |
The magnification (as a percentage) less than which ruler guides do not appear. (Range: 5 to 4000) |
|
documentGridShown |
read/write |
If true, displays the document grid. |
|
|
documentGridSnapto |
read/write |
If true, an object snaps to the nearest grid line when the object is created, moved, or resized. |
|
|
eventListeners |
readonly |
A collection of event listeners. |
|
|
events |
readonly |
A collection of events. |
|
|
gridColor |
Array of 3 Reals (0 - 255) |
read/write |
The color of the document grid, specified either as an array of three doubles, each in the range 0 to 255, representing R, G, and B values, or as a UI color. Can return: Array of 3 Reals (0 - 255) or UIColors enumerator. |
|
gridsInBack |
read/write |
If true, places grids behind all other objects on the spread. |
|
|
horizontalGridSubdivision |
Number (range 1 - 1000) |
read/write |
The number of rows into which to subdivide the space between horizontal document grid lines. |
|
horizontalGridlineDivision |
read/write |
The amount of space between major horizontal lines in the document grid. |
|
|
isValid |
readonly |
Returns true if the object specifier resolves to valid objects. |
|
|
parent |
readonly |
The parent of the GridPreference (a Application or Document). |
|
|
properties |
read/write |
A property that allows setting of several properties at the same time. |
|
|
verticalGridSubdivision |
Number (range 1 - 1000) |
read/write |
The number of columns into which to subdivide the space between vertical document grid lines. |
|
verticalGridlineDivision |
read/write |
The amount of space between major vertical lines in the document grid. |
EventListener addEventListener (eventType:String, handler:Varies, [captures:Boolean=Boolean])
Adds an event listener.
|
Parameter |
Type |
Description |
|---|---|---|
|
eventType |
The event type. |
|
|
handler |
Varies |
The event handler. Can accept: File or JavaScript Function. |
|
captures |
This parameter is obsolete. (Optional) (default: false) |
GridPreference getElements ()
Resolves the object specifier, creating an array of object references.
Boolean removeEventListener (eventType:String, handler:Varies, [captures:Boolean=Boolean])
Removes the event listener.
|
Parameter |
Type |
Description |
|---|---|---|
|
eventType |
The registered event type. |
|
|
handler |
Varies |
The registered event handler. Can accept: File or JavaScript Function. |
|
captures |
This parameter is obsolete. (Optional) (default: false) |
String toSource ()
Generates a string which, if executed, will return the GridPreference.
String toSpecifier ()
Retrieves the object specifier.
Application.gridPreferences
Document.gridPreferences
Event.parent
EventListener.parent
MutationEvent.parent