Preferences

A collection of preferences objects.

Methods:

[], anyItem, count, everyItem, firstItem, item, itemByName, itemByRange, lastItem, middleItem, nextItem, previousItem, toSource

Property Listing

Property

Type

Access

Description

length

Number

readonly

The number of objects in the collection.

Method Listing

Preference [] (index:Number)

Returns the Preference with the specified index.

Parameter

Type

Description

index

Number

The index.

Preference anyItem ()

Returns any Preference in the collection.

Number count ()

Displays the number of elements in the Preference.

Preference everyItem ()

Returns every Preference in the collection.

Preference firstItem ()

Returns the first Preference in the collection.

Preference item (index:Varies LongInteger String)

Returns the Preference with the specified index or name.

Parameter

Type

Description

index

LongInteger

String

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

Preference itemByName (name:String)

Returns the Preference with the specified name.

Parameter

Type

Description

name

String

The name.

Preference itemByRange (from:Varies LongInteger Preference String, to:Varies LongInteger Preference String)

Returns the Preferences within the specified range.

Parameter

Type

Description

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 lastItem ()

Returns the last Preference in the collection.

Preference middleItem ()

Returns the middle Preference in the collection.

Preference nextItem (obj:Preference)

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

Parameter

Type

Description

obj

Preference

The Preference whose index comes before the desired Preference.

Preference previousItem (obj:Preference)

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

Parameter

Type

Description

obj

Preference

The index of the Preference that follows the desired Preference.

String toSource ()

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

Object of

Application.preferences

Document.preferences