InDesign Server2025
API 20.5.0.49
Collection of Section

Sections

A collection of sections.

Properties

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

Methods

Section

Returns the Section with the specified index.

index Number The index.
Section

Creates a new section.

reference? Page The page on which the section begins.
withProperties? Object Initial values for properties of the new Section
Section

Returns any Section in the collection.

Number

Displays the number of elements in the Section.

Section[]

Returns every Section in the collection.

Section

Returns the first Section in the collection.

Section

Returns the Section with the specified index or name.

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

Returns the Section with the specified ID.

id Number The ID.
Section

Returns the Section with the specified name.

name String The name.
Section[]

Returns the Sections within the specified range.

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

Returns the last Section in the collection.

Section

Returns the middle Section in the collection.

Section

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

obj Section The Section whose index comes before the desired Section.
Section

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

obj Section The index of the Section that follows the desired Section.
String

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

Object of 1

Properties elsewhere that hold a Sections.