Assignments

A collection of assignments.

Methods

Assignmentadd (filePath:
File[, versionComments:
string][, forceSave:
bool=false ][, withProperties:
Object])
Creates a new assignment.

Parameter Type Description
filePath File The full path name of the new assignment.
versionComments string The comment for this version. (Optional)
forceSave bool If true, forcibly saves a version. (Optional) (default: false )
withProperties Object Initial values for properties of the new Assignment (Optional)

AssignmentanyItem ()
Returns any Assignment in the collection.

number count ()
Displays the number of elements in the Assignment.

Array of AssignmenteveryItem ()
Returns every Assignment in the collection.

AssignmentfirstItem ()
Returns the first Assignment in the collection.

Assignmentitem (index:
any)
Returns the Assignment with the specified index or name.

Parameter Type Description
index Long Integer
String
The index or name. Can accept: Long Integer or String.

AssignmentitemByID (id:
number)
Returns the Assignment with the specified ID.

Parameter Type Description
id number The ID.

AssignmentitemByName (name:
string)
Returns the Assignment with the specified name.

Parameter Type Description
name string The name.

Array of AssignmentitemByRange (from:
any, to:
any)
Returns the Assignments within the specified range.

Parameter Type Description
from Assignment
Long Integer
String
The Assignment, index, or name at the beginning of the range. Can accept: Assignment, Long Integer or String.
to Assignment
Long Integer
String
The Assignment, index, or name at the end of the range. Can accept: Assignment, Long Integer or String.

AssignmentlastItem ()
Returns the last Assignment in the collection.

AssignmentmiddleItem ()
Returns the middle Assignment in the collection.

AssignmentnextItem (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.

AssignmentpreviousItem (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.

Element of:

Document.assignments

Leave a Comment

Previous post:

Next post: