Edit in GitHubLog an issue

DocumentPresets

A collection of document presets.

Instance

Read Only

Number length

The number of objects in the collection.

Methods

DocumentPreset add( Object withProperties )

Creates a new DocumentPreset.

Parameters

TypeNameDescription
Object
withProperties
Initial values for properties of the new DocumentPreset (Optional)

Number count()

Displays the number of elements in the DocumentPreset.


DocumentPreset item( Mixed index )

Returns the DocumentPreset with the specified index or name.

Parameters

TypeNameDescription
Mixed
index
The index or name. Can accept: Long Integer or String.

DocumentPreset itemByName( String name )

Returns the DocumentPreset with the specified name.

Parameters

TypeNameDescription
String
name
The name.

DocumentPreset itemByID( Number id )

Returns the DocumentPreset with the specified ID.

Parameters

TypeNameDescription
Number
id
The ID.

DocumentPreset itemByRange( Mixed from, Mixed to )

Returns the DocumentPresets within the specified range.

Parameters

TypeNameDescription
Mixed
from
The DocumentPreset, index, or name at the beginning of the range. Can accept: DocumentPreset, Long Integer or String.
Mixed
to
The DocumentPreset, index, or name at the end of the range. Can accept: DocumentPreset, Long Integer or String.

DocumentPreset firstItem()

Returns the first DocumentPreset in the collection.


DocumentPreset lastItem()

Returns the last DocumentPreset in the collection.


DocumentPreset middleItem()

Returns the middle DocumentPreset in the collection.


DocumentPreset previousItem( DocumentPreset obj )

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

Parameters

TypeNameDescription
DocumentPreset
obj
The index of the DocumentPreset that follows the desired DocumentPreset.

DocumentPreset nextItem( DocumentPreset obj )

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

Parameters

TypeNameDescription
DocumentPreset
obj
The DocumentPreset whose index comes before the desired DocumentPreset.

DocumentPreset anyItem()

Returns any DocumentPreset in the collection.


DocumentPreset everyItem()

Returns every DocumentPreset in the collection.


String toSource()

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


DocumentPreset []( Number index )

Returns the DocumentPreset with the specified index.

Parameters

TypeNameDescription
Number
index
The index.
Was this helpful?
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2023 Adobe. All rights reserved.