Edit in GitHubLog an issue

Assignments

A collection of assignments.

Instance

Read Only

Number length

The number of objects in the collection.

Methods

Assignment add( File filePath, String versionComments, Boolean forceSave, Object withProperties )

Creates a new assignment.

Parameters

TypeNameDescription
File
filePath
The full path name of the new assignment.
String
versionComments
The comment for this version. (Optional)
Boolean
forceSave
If true, forcibly saves a version. (Optional)
Object
withProperties
Initial values for properties of the new Assignment (Optional)

Number count()

Displays the number of elements in the Assignment.


Assignment item( Mixed index )

Returns the Assignment with the specified index or name.

Parameters

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

Assignment itemByName( String name )

Returns the Assignment with the specified name.

Parameters

TypeNameDescription
String
name
The name.

Assignment itemByID( Number id )

Returns the Assignment with the specified ID.

Parameters

TypeNameDescription
Number
id
The ID.

Assignment itemByRange( Mixed from, Mixed to )

Returns the Assignments within the specified range.

Parameters

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

Assignment firstItem()

Returns the first Assignment in the collection.


Assignment lastItem()

Returns the last Assignment in the collection.


Assignment middleItem()

Returns the middle Assignment in the collection.


Assignment previousItem( Assignment obj )

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

Parameters

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

Assignment nextItem( Assignment obj )

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

Parameters

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

Assignment anyItem()

Returns any Assignment in the collection.


Assignment everyItem()

Returns every Assignment in the collection.


String toSource()

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


Assignment []( Number index )

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