InDesign Server2025
API 20.5.0.49
Collection of Column

Columns

A collection of table columns.

Properties

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

Methods

Column

Returns the Column with the specified index.

index Number The index.
→ Varies

Creates a new Column.

at? LocationOptions The Column's location relative to the reference object or within the table.
reference? Cell | Column | Row | Table The reference object. Note: The reference object must be within the table. Required only when the at value contains before or after. Can accept: Row, Column, Cell or Table.
withProperties? Object Initial values for properties of the new Column
Column

Returns any Column in the collection.

Number

Displays the number of elements in the Column.

Column[]

Returns every Column in the collection.

Column

Returns the first Column in the collection.

Column

Returns the Column with the specified index or name.

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

Returns the Column with the specified name.

name String The name.
Column[]

Returns the Columns within the specified range.

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

Returns the last Column in the collection.

Column

Returns the middle Column in the collection.

Column

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

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

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

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

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

Object of 4

Properties elsewhere that hold a Columns.