InDesign2026
API 21.5.1.73
Collection of Preference

Preferences

A collection of preferences objects.

Properties

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

Methods

→ Preference

Returns the Preference with the specified index.

index Number The index.
→ Preference

Returns any Preference in the collection.

→ Number

Displays the number of elements in the Preference.

→ Preference[]

Returns every Preference in the collection.

→ Preference

Returns the first Preference in the collection.

→ Preference

Returns the Preference with the specified index or name.

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

Returns the Preferences within the specified range.

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

Returns the last Preference in the collection.

→ Preference

Returns the middle Preference in the collection.

→ Preference

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

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

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

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

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

Object of 73

Properties elsewhere that hold a Preferences.

Application.preferencesBook.preferencesButton.preferencesChangeGrepPreference.preferencesChangeObjectPreference.preferencesChangeTextPreference.preferencesChangeTransliteratePreference.preferencesCharacter.preferencesCheckBox.preferencesComboBox.preferencesContentTransparencySetting.preferencesDataMerge.preferencesDocument.preferencesEPS.preferencesEPSText.preferencesEndnoteTextFrame.preferencesFillTransparencySetting.preferencesFindChangeContentTransparencySetting.preferencesFindChangeFillTransparencySetting.preferencesFindChangeStrokeTransparencySetting.preferencesFindChangeTransparencySetting.preferencesFindGrepPreference.preferencesFindObjectPreference.preferencesFindTextPreference.preferencesFindTransliteratePreference.preferencesFlexObject.preferencesFormField.preferencesGraphic.preferencesGraphicLine.preferencesGroup.preferencesHtmlItem.preferencesImage.preferencesImportedPage.preferencesInsertionPoint.preferencesLine.preferencesLink.preferencesListBox.preferencesMasterSpread.preferencesMediaItem.preferencesMovie.preferencesMultiStateObject.preferencesNamedGrid.preferencesObjectStyle.preferencesOval.preferencesPDF.preferencesPICT.preferencesPage.preferencesPageItem.preferencesPageItemDefault.preferencesParagraph.preferencesParagraphStyle.preferencesPolygon.preferencesRadioButton.preferencesRectangle.preferencesSVG.preferencesSignatureField.preferencesSound.preferencesSplineItem.preferencesSpread.preferencesStory.preferencesStrokeTransparencySetting.preferencesText.preferencesTextBox.preferencesTextColumn.preferencesTextDefault.preferencesTextFrame.preferencesTextStyleRange.preferencesTextVariable.preferencesTextWrapPreference.preferencesTransparencySetting.preferencesWMF.preferencesWord.preferencesXmlStory.preferences