InDesign2026
API 21.5.1.73
Object

GridPrintingPreference

Grid printing and exporting preferences.

Preference GridPrintingPreference
Hierarchy

Application

GridPrintingPreference

Properties

NameType AccessDescription
EventListeners<EventListener> readonly A collection of event listeners.
Events<Event> readonly A collection of events.
Boolean read/write If true, displays frame (story) grids in the printed or exported document.
Number read/write The stroke weight (in points) of the frame grid.
Boolean readonly Returns true if the object specifier resolves to valid objects.
Boolean read/write If true, displays layout grids in the printed or exported document.
Number read/write The stroke weight (in points) of the layout grid.
Boolean read/write If true, displays page items other than text, frame grids, and layout grids in the printed or exported document. For information on printing and exporting text and grids, see text printing, frame grid printing, and layout grid printing.
Application readonly The parent of the GridPrintingPreference (a Application).
Object read/write A property that allows setting of several properties at the same time.
Boolean read/write If true, displays text in the printed or exported document.

Methods

EventListener

Adds an event listener.

eventType String The event type.
handler File | JavaScriptFunction The event handler. Can accept: File or JavaScript Function.
captures? Boolean This parameter is obsolete.
GridPrintingPreference[]

Resolves the object specifier, creating an array of object references.

Boolean

Removes the event listener.

eventType String The registered event type.
handler File | JavaScriptFunction The registered event handler. Can accept: File or JavaScript Function.
captures? Boolean This parameter is obsolete.
String

Generates a string which, if executed, will return the GridPrintingPreference.

String

Retrieves the object specifier.

Object of 4

Properties elsewhere that hold a GridPrintingPreference.

Return 1

Methods that return a GridPrintingPreference.