InDesign2026
API 21.5.1.73
Collection of ListBox

ListBoxes

A collection of listboxes.

Properties

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

Methods

ListBox

Returns the ListBox with the specified index.

index Number The index.
ListBox

Creates a new ListBox

layer? Layer The layer on which to create the ListBox.
at? LocationOptions The location at which to insert the ListBox relative to the reference object or within the container object.
reference? Document | Layer | MasterSpread | Page | Spread | PageItem The reference object. Note: Required when the at parameter is before or after. Can accept: Document, Spread, MasterSpread, Page, Layer or PageItem.
withProperties? Object Initial values for properties of the new ListBox
ListBox

Returns any ListBox in the collection.

Number

Displays the number of elements in the ListBox.

ListBox[]

Returns every ListBox in the collection.

ListBox

Returns the first ListBox in the collection.

ListBox

Returns the ListBox with the specified index or name.

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

Returns the ListBox with the specified ID.

id Number The ID.
ListBox

Returns the ListBox with the specified name.

name String The name.
ListBox[]

Returns the ListBoxes within the specified range.

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

Returns the last ListBox in the collection.

ListBox

Returns the middle ListBox in the collection.

ListBox

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

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

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

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

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

Object of 31

Properties elsewhere that hold a ListBoxes.