InDesign2026
API 21.5.1.73

DataMergeImagePlaceholders

A collection of data merge image placeholders.

Properties

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

Methods

DataMergeImagePlaceholder

Creates a data merge image placeholder.

placeholder PageItem The page item on which to place the placeholder.
field DataMergeField The data merge field to insert.
withProperties? Object Initial values for properties of the new DataMergeImagePlaceholder
Number

Displays the number of elements in the DataMergeImagePlaceholder.

Returns the DataMergeImagePlaceholder with the specified index or name.

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

Returns the DataMergeImagePlaceholders within the specified range.

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

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

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

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

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

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

Object of 1

Properties elsewhere that hold a DataMergeImagePlaceholders.