InDesign2026
API 21.5.1.73
Collection of NamedGrid

NamedGrids

A collection of named grids.

Properties

NameType AccessDescription
Number readonly The number of objects in the collection.

Methods

→ NamedGrid

Returns the NamedGrid with the specified index.

index Number The index.
→ NamedGrid

Creates a new NamedGrid.

withProperties? Object Initial values for properties of the new NamedGrid
→ NamedGrid

Returns any NamedGrid in the collection.

→ Number

Displays the number of elements in the NamedGrid.

→ NamedGrid[]

Returns every NamedGrid in the collection.

→ NamedGrid

Returns the first NamedGrid in the collection.

→ NamedGrid

Returns the NamedGrid with the specified index or name.

index LongInteger | String The index or name. Can accept: Long Integer or String.
→ NamedGrid

Returns the NamedGrid with the specified ID.

id Number The ID.
→ NamedGrid

Returns the NamedGrid with the specified name.

name String The name.
→ NamedGrid[]

Returns the NamedGrids within the specified range.

from LongInteger | NamedGrid | String The NamedGrid, index, or name at the beginning of the range. Can accept: NamedGrid, Long Integer or String.
to LongInteger | NamedGrid | String The NamedGrid, index, or name at the end of the range. Can accept: NamedGrid, Long Integer or String.
→ NamedGrid

Returns the last NamedGrid in the collection.

→ NamedGrid

Returns the middle NamedGrid in the collection.

→ NamedGrid

Returns the NamedGrid whose index follows the specified NamedGrid in the collection.

obj NamedGrid The NamedGrid whose index comes before the desired NamedGrid.
→ NamedGrid

Returns the NamedGrid with the index previous to the specified index.

obj NamedGrid The index of the NamedGrid that follows the desired NamedGrid.
→ String

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

Object of 2

Properties elsewhere that hold a NamedGrids.