Adobe InDesign CS4 (6.0) Object Model JS: GridPreference

InDesign CS4

Class

GridPreference

 Grid preferences. Base Class: Preference

QuickLinks

getElements, toSource, toSpecifier

Hierarchy

Application | Document
Preference
GridPreference

Properties

PropertyTypeAccessDescription
baselineColor3 Reals (0 - 255)
UIColors
r/wThe 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.
baselineDivisionMeasurement Unit (Number or String) (range: 1 - 8640) r/wThe amount of space between baseline grid lines.
baselineGridRelativeOptionBaselineGridRelativeOption:
BaselineGridRelativeOption.TOP_OF_PAGE_OF_BASELINE_GRID_RELATIVE_OPTION
BaselineGridRelativeOption.TOP_OF_MARGIN_OF_BASELINE_GRID_RELATIVE_OPTION
r/wThe zero point for the baseline grid offset.
baselineGridShownbool r/wIf true, displays the baseline grid.
baselineStartMeasurement Unit (Number or String) (range: 0 - 1000) r/wThe amount to offset the baseline grid from the zero point.
baselineViewThresholdnumber (range: 5 - 4000) r/wThe magnification (as a percentage) less than which ruler guides do not appear. (Range: 5 to 4000)
documentGridShownbool r/wIf true, displays the document grid.
documentGridSnaptobool r/wIf true, an object snaps to the nearest grid line when the object is created, moved, or resized.
gridColor3 Reals (0 - 255)
UIColors
r/wThe 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.
gridsInBackbool r/wIf true, places grids behind all other objects on the spread.
horizontalGridSubdivisionnumber (range: 1 - 1000) r/wThe number of rows into which to subdivide the space between horizontal document grid lines.
horizontalGridlineDivisionMeasurement Unit (Number or String) (range: 0.01 - 1000) r/wThe amount of space between major horizontal lines in the document grid.
isValidbool readonlyReturns true if the object specifier resolves to valid objects.
parentApplication
Document
readonlyThe parent of the GridPreference (a Application or Document).
propertiesObject r/wA property that allows setting of several properties at the same time.
verticalGridSubdivisionnumber (range: 1 - 1000) r/wThe number of columns into which to subdivide the space between vertical document grid lines.
verticalGridlineDivisionMeasurement Unit (Number or String) (range: 0.01 - 1000) r/wThe amount of space between major vertical lines in the document grid.

Methods

Instances

Array of GridPreference getElements ()
Resolves the object specifier, creating an array of object references.

string toSource ()
Generates a string which, if executed, will return the GridPreference.

string toSpecifier ()
Retrieves the object specifier.

Element of

Application.gridPreferences

Document.gridPreferences

Return

Array of GridPreference GridPreference.getElements ()

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