Assignments

A collection of assignments.

Methods:

add, anyItem, count, everyItem, firstItem, item, itemByID, 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

Assignment add (filePath:File, withProperties:Object)

Creates a new assignment.

Parameter

Type

Description

filePath

File

The full path name of the new assignment.

withProperties

Object

Initial values for properties of the new Assignment (Optional)

Assignment anyItem ()

Returns any Assignment in the collection.

Number count ()

Displays the number of elements in the Assignment.

Assignment everyItem ()

Returns every Assignment in the collection.

Assignment firstItem ()

Returns the first Assignment in the collection.

Assignment item (index:Varies Long String)

Returns the Assignment with the specified index or name.

Parameter

Type

Description

index

Long

String

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

Assignment itemByID (id:Number)

Returns the Assignment with the specified ID.

Parameter

Type

Description

id

Number

The ID.

Assignment itemByName (name:String)

Returns the Assignment with the specified name.

Parameter

Type

Description

name

String

The name.

Assignment itemByRange (from:Varies Assignment Long String, to:Varies Assignment Long String)

Returns the Assignments within the specified range.

Parameter

Type

Description

from

Assignment

Long

String

The Assignment, index, or name at the beginning of the range. Can accept: Assignment, Long or String.

to

Assignment

Long

String

The Assignment, index, or name at the end of the range. Can accept: Assignment, Long or String.

Assignment lastItem ()

Returns the last Assignment in the collection.

Assignment middleItem ()

Returns the middle Assignment in the collection.

Assignment nextItem (obj:Assignment)

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

Parameter

Type

Description

obj

Assignment

The Assignment whose index comes before the desired Assignment.

Assignment previousItem (obj:Assignment)

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

Parameter

Type

Description

obj

Assignment

The index of the Assignment that follows the desired Assignment.

String toSource ()

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

Object of

Document.assignments