A collection of documents.
Methods
Documentadd ([showingWindow:
bool=true ][, documentPreset:
DocumentPreset][, withProperties:
Object])
Creates a new document.
| Parameter | Type | Description |
|---|---|---|
| showingWindow | bool | If true, displays the document. (Optional) (default: true ) |
| documentPreset | DocumentPreset | The document preset to use. (Optional) |
| withProperties | Object | Initial values for properties of the new Document (Optional) |
DocumentanyItem ()
Returns any Document in the collection.
number count ()
Displays the number of elements in the Document.
Array of DocumenteveryItem ()
Returns every Document in the collection.
DocumentfirstItem ()
Returns the first Document in the collection.
Documentitem (index:
any)
Returns the Document with the specified index or name.
| Parameter | Type | Description |
|---|---|---|
| index | Long Integer String |
The index or name. Can accept: Long Integer or String. |
DocumentitemByName (name:
string)
Returns the Document with the specified name.
| Parameter | Type | Description |
|---|---|---|
| name | string | The name. |
Array of DocumentitemByRange (from:
any, to:
any)
Returns the Documents within the specified range.
| Parameter | Type | Description |
|---|---|---|
| from | Document Long Integer String |
The Document, index, or name at the beginning of the range. Can accept: Document, Long Integer or String. |
| to | Document Long Integer String |
The Document, index, or name at the end of the range. Can accept: Document, Long Integer or String. |
DocumentlastItem ()
Returns the last Document in the collection.
DocumentmiddleItem ()
Returns the middle Document in the collection.
DocumentnextItem (obj:
Document)
Returns the Document whose index follows the specified Document in the collection.
| Parameter | Type | Description |
|---|---|---|
| obj | Document | The Document whose index comes before the desired Document. |
DocumentpreviousItem (obj:
Document)
Returns the Document with the index previous to the specified index.
| Parameter | Type | Description |
|---|---|---|
| obj | Document | The index of the Document that follows the desired Document. |
string toSource ()
Generates a string which, if executed, will return the Document.
Element of:
Application.documents