InDesign Server2025
API 20.5.0.49
Collection of ComboBox

ComboBoxes

A collection of comboboxes.

Properties

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

Methods

ComboBox

Returns the ComboBox with the specified index.

index Number The index.
ComboBox

Creates a new ComboBox

layer? Layer The layer on which to create the ComboBox.
at? LocationOptions The location at which to insert the ComboBox 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 ComboBox
ComboBox

Returns any ComboBox in the collection.

Number

Displays the number of elements in the ComboBox.

ComboBox[]

Returns every ComboBox in the collection.

ComboBox

Returns the first ComboBox in the collection.

ComboBox

Returns the ComboBox with the specified index or name.

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

Returns the ComboBox with the specified ID.

id Number The ID.
ComboBox

Returns the ComboBox with the specified name.

name String The name.
ComboBox[]

Returns the ComboBoxes within the specified range.

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

Returns the last ComboBox in the collection.

ComboBox

Returns the middle ComboBox in the collection.

ComboBox

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

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

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

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

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

Object of 30

Properties elsewhere that hold a ComboBoxes.