Edit in GitHubLog an issue

TrapPresets

A collection of trap presets.

Instance

Read Only

Number length

The number of objects in the collection.

Methods

TrapPreset add( Object withProperties )

Creates a new TrapPreset.

Parameters

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

Number count()

Displays the number of elements in the TrapPreset.


TrapPreset item( Mixed index )

Returns the TrapPreset with the specified index or name.

Parameters

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

TrapPreset itemByName( String name )

Returns the TrapPreset with the specified name.

Parameters

TypeNameDescription
String
name
The name.

TrapPreset itemByID( Number id )

Returns the TrapPreset with the specified ID.

Parameters

TypeNameDescription
Number
id
The ID.

TrapPreset itemByRange( Mixed from, Mixed to )

Returns the TrapPresets within the specified range.

Parameters

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

TrapPreset firstItem()

Returns the first TrapPreset in the collection.


TrapPreset lastItem()

Returns the last TrapPreset in the collection.


TrapPreset middleItem()

Returns the middle TrapPreset in the collection.


TrapPreset previousItem( TrapPreset obj )

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

Parameters

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

TrapPreset nextItem( TrapPreset obj )

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

Parameters

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

TrapPreset anyItem()

Returns any TrapPreset in the collection.


TrapPreset everyItem()

Returns every TrapPreset in the collection.


String toSource()

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


TrapPreset []( Number index )

Returns the TrapPreset 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.