InDesign2026
API 21.5.1.73
Object

Section

A section.

Hierarchy

Document

Section

Properties

NameType AccessDescription
String read/write The alternate layout name for a set of pages.
Number readonly The number of pages in the alternate layout section.
Boolean read/write If true, continues page numbers sequentially from the previous section.
EventListeners<EventListener> readonly A collection of event listeners.
Events<Event> readonly A collection of events.
Number readonly The unique ID of the Section.
Boolean read/write If true, places the specified prefix before page numbers on all pages in the section.
Number readonly The index of the Section within its containing object.
Boolean readonly Returns true if the object specifier resolves to valid objects.
String read/write A property that can be set to any string.
Number readonly The number of pages in the section.
String read/write The section marker.
String read/write The name of the Section.
Number 1–999999 read/write The page number assigned to the first page in the section. Note: Valid only when continue numbering is false.
PageNumberStyle | String
+1 more
read/write The page number style. Can return: PageNumberStyle enumerator or String.
Page read/write The start page for the section.
Document readonly The parent of the Section (a Document).
Object read/write A property that allows setting of several properties at the same time.
String read/write The prefix to place before page numbers on pages in the section. May include up to 8 characters. Note: Valid only when include section prefix is true.

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.
String

Gets the label value associated with the specified key.

key String The key.
Section[]

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

void

Sets the label to the value associated with the specified key.

key String The key.
value String The value.
void

Deletes the Section.

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 Section.

String

Retrieves the object specifier.

Object of 5

Properties elsewhere that hold a Section.

Parameter of 3

Method parameters that accept a Section.

Return 14

Methods that return a Section.