<GridPreference> / Element reference
GridPreference
The GridPreference element in IDML: where it appears (Resources/Preferences), its 14 attributes, their values, and how real documents use them.
Definition
The document's baseline grid and document grid: spacing, start, colour and whether they show.
- Lives in
Resources/Preferences271- Frequency
- In 271 of the 305 documents of the census (88.9%), 2026-10-12
- Attributes
- 14 observed, 11 of them vary between documents
- Discussed in
- Resource parts
Structure
Relationships
GridPreference sits: the elements that hold it, and the elements it holds. Each number is the documents that show the pairing (census of 2026-10-12, 305 documents).Attributes
| Attribute | Type | Values | Seen in |
|---|---|---|---|
| BaselineColor a child of Properties #The colour of the baseline grid on screen: a swatch or one of InDesign's named interface colours. | enumeration | any | 100% varies in 7 |
| BaselineDivision# The space between baseline grid lines, in points. | integer | any | 100% varies in 10 |
| BaselineGridRelativeOption# What BaselineStart is measured from: the top of the page or the top margin. | text | any | 100% varies in 4 |
| BaselineGridShown# Whether the baseline grid is shown on screen. | boolean | false264true7 | 100% varies in 7 |
| BaselineStart# Where the first baseline grid line falls, in points from the top of the page or the top margin ( BaselineGridRelativeOption). | integer or real | any | 100% varies in 13 |
| BaselineViewThreshold# The zoom percentage below which the baseline grid is hidden on screen. | integer | any | 100% |
| DocumentGridShown# Whether the document grid is shown on screen. | boolean | false271 | 100% |
| DocumentGridSnapto# Whether objects snap to the document grid while being drawn or moved. | boolean | false267true4 | 100% varies in 4 |
| GridColor a child of Properties #The colour of the document grid on screen. | enumeration | any | 100% |
| GridsInBack# When true, grids are drawn behind page objects on screen. | boolean | true266false5 | 100% varies in 5 |
| HorizontalGridlineDivision# The document grid's spacing between major gridlines in the horizontal direction, in points. | integer or real | any | 100% varies in 2 |
| HorizontalGridSubdivision# Into how many parts the document grid divides each horizontal gridline interval. | integer | any | 100% varies in 2 |
| VerticalGridlineDivision# The document grid's spacing between major gridlines in the vertical direction, in points. | integer or real | any | 100% varies in 2 |
| VerticalGridSubdivision# Into how many parts the document grid divides each vertical gridline interval. | integer | any | 100% varies in 2 |
GridPreference (census of 2026-10-12, 305 documents). Seen in is the share of the 271 documents with a GridPreference that set the attribute; varies in counts those that hold a value other than the most common one. Values are listed, with the documents using each, only where documents use a small closed set. A name with a dotted underline links to the chapter that explains it. How the census counts.Evidence
- Observed
- In 271 of 305 documents (88.9%):
Resources/Preferences271. - Census
- Taken 2026-10-12 over 305 documents (34 written by test generators, 267 from template packs, 4 samples). It observed 281 elements; this reference gives 195 of them an entry. How the census counts
- Counts are
- Documents, not occurrences. Values are published only for small closed sets; numbers only by kind.
Paged support
What Paged, one implementation of the format, does with GridPreference. Nothing in this panel is part of the format; the reference above holds for any reader.
As of: scriptable paths from engine release v0.77.0; parse and write from the importer and exporter at paged b6f499b, read 2026-11-30; render from the capability record exported 2026-11-29.
- Parse
- Reads 7 of the 14 attributes
- Render
- No feature of the capability record names this element
- Edit
- No attribute maps to a scriptable path
- Write
- Writes none of its attributes on IDML export
By attribute
| Attribute | Parse | Edit | Write |
|---|---|---|---|
| BaselineColor | readsdesignmap.rs:778 | — | not written |
| BaselineDivision | readsdesignmap.rs:775 | — | not written |
| BaselineGridRelativeOption | readsdesignmap.rs:777 | — | not written |
| BaselineGridShown | readsdesignmap.rs:776 | — | not written |
| BaselineStart | readsdesignmap.rs:774 | — | not written |
| BaselineViewThreshold | not read | — | not written |
| DocumentGridShown | not read | — | not written |
| DocumentGridSnapto | not read | — | not written |
| GridColor | not read | — | not written |
| GridsInBack | not read | — | not written |
| HorizontalGridlineDivision | readsdesignmap.rs:779 | — | not written |
| HorizontalGridSubdivision | not read | — | not written |
| VerticalGridlineDivision | readsdesignmap.rs:780 | — | not written |
| VerticalGridSubdivision | not read | — | not written |
Parse and write come from the idml-coverage record, which reads the importer and exporter source; each mark links to the line. Render is recorded per feature, not per attribute. A feature is listed when its title in the record names GridPreference.
GradientFeatherSetting
The GradientFeatherSetting element in IDML: where it appears (Resources/Preferences), its 7 attributes, their values, and how real documents use them.
GuidePreference
The GuidePreference element in IDML: where it appears (Resources/Preferences), its 6 attributes, their values, and how real documents use them.