InDesign Server2025
API 20.5.0.49
Collection of DataMergeField

DataMergeFields

A collection of data merge fields.

Properties

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

Methods

→ DataMergeField

Returns the DataMergeField with the specified index.

index Number The index.
→ DataMergeField

Returns any DataMergeField in the collection.

→ Number

Displays the number of elements in the DataMergeField.

→ DataMergeField[]

Returns every DataMergeField in the collection.

→ DataMergeField

Returns the first DataMergeField in the collection.

→ DataMergeField

Returns the DataMergeField with the specified index or name.

index LongInteger | String The index or name. Can accept: Long Integer or String.
→ DataMergeField[]

Returns the DataMergeFields within the specified range.

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

Returns the last DataMergeField in the collection.

→ DataMergeField

Returns the middle DataMergeField in the collection.

→ DataMergeField

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

obj DataMergeField The DataMergeField whose index comes before the desired DataMergeField.
→ DataMergeField

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

obj DataMergeField The index of the DataMergeField that follows the desired DataMergeField.
→ String

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

Object of 1

Properties elsewhere that hold a DataMergeFields.