InDesign Server2025
API 20.5.0.49
Collection of PageItem

PageItems

The page items collection, which can be used to process all page items in a container (such as a document, page, or group), regardless of type.

Properties

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

Methods

→ PageItem

Returns the PageItem with the specified index.

index Number The index.
→ PageItem

Returns any PageItem in the collection.

→ Number

Displays the number of elements in the PageItem.

→ PageItem[]

Returns every PageItem in the collection.

→ PageItem

Returns the first PageItem in the collection.

→ PageItem

Returns the PageItem with the specified index or name.

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

Returns the PageItem with the specified ID.

id Number The ID.
→ PageItem

Returns the PageItem with the specified name.

name String The name.
→ PageItem[]

Returns the PageItems within the specified range.

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

Returns the last PageItem in the collection.

→ PageItem

Returns the middle PageItem in the collection.

→ PageItem

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

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

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

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

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

Object of 60

Properties elsewhere that hold a PageItems.

Parameter of 1

Method parameters that accept a PageItems.