Edit in GitHubLog an issue

Indexes

A collection of indexes.

Instance

Read Only

Number length

The number of objects in the collection.

Methods

Index add( Object withProperties )

Creates a new Index.

Parameters

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

Number count()

Displays the number of elements in the Index.


Index item( Mixed index )

Returns the Index with the specified index or name.

Parameters

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

Index itemByName( String name )

Returns the Index with the specified name.

Parameters

TypeNameDescription
String
name
The name.

Index itemByID( Number id )

Returns the Index with the specified ID.

Parameters

TypeNameDescription
Number
id
The ID.

Index itemByRange( Mixed from, Mixed to )

Returns the Indexes within the specified range.

Parameters

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

Index firstItem()

Returns the first Index in the collection.


Index lastItem()

Returns the last Index in the collection.


Index middleItem()

Returns the middle Index in the collection.


Index previousItem( Index obj )

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

Parameters

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

Index nextItem( Index obj )

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

Parameters

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

Index anyItem()

Returns any Index in the collection.


Index everyItem()

Returns every Index in the collection.


String toSource()

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


Index []( Number index )

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