GridPreference

Grid preferences.

GridPreference Properties

Property Type Access Description
baselineColor Array of 3 Reals (0 – 255), UIColors enumeration (see table at end of chapter) r/w The color of the baseline grid as Array of 3 Doubles (0 – 255) or idUIColors enumerator.
baselineDivision Unit (1 – 8640 points) r/w The spacing between baseline grid lines.
baselineGridRelativeOption BaselineGridRelativeOption enumeration r/w The options are Top of Page and Top of Margin.
baselineGridShown Boolean r/w If true, display the baseline grid.
baselineStart Unit (0 – 1000 points) r/w The distance by which to offset the grid from the top of the page or frame.
baselineViewThreshold Real (5 – 4000) r/w A value to specify the magnification below which the baseline grid does not appear.
documentGridShown Boolean r/w If true, display the document grid.
documentGridSnapto Boolean r/w If true, object edges snap to the nearest document grid line when drawing, moving or resizing the object.
gridColor Array of 3 Reals (0 – 255), UIColors enumeration (see table at end of chapter) r/w The color of the document grid.
gridsInBack Boolean r/w If true, display grids behind all other objects.
horizontalGridlineDivision Unit (0.01 – 1000 points) r/w The spacing between major horizontal grid lines in the document grid.
horizontalGridSubdivision Long (1 – 1000) r/w The number of evenly spaced minor horizontal document grid lines appearing between major horizontal document grid lines.
parent Object read The parent of the object.
properties An array of property names and values r/w Property that allows setting of several properties at the same time.
verticalGridlineDivision Unit (0.01 – 1000 points) r/w The spacing beween major vertical grid lines in the document grid.
verticalGridSubdivision Long (1 – 1000) r/w The number of evenly spaced minor vertical document grid lines appearing between major vertical document grid lines.

GridPreference Methods

Method Returns Description
getElements Array of Objects Resolve the object specifier.
toSource String Generate JavaScript source that, if executed, will return the specified objects.
toSpecifier String Retrieve the object specifier.

Leave a Comment

Previous post:

Next post: