Note
QuickLinks
Hierarchy
Properties
Property | Type | Access | Description |
---|---|---|---|
characters | Characters Character | readonly | A collection of characters. |
collapsed | bool | r/w | If true, the note is collapsed in galley view. |
creationDate | Date | readonly | The date and time the note was created. |
eventListeners | EventListeners EventListener | readonly | A collection of event listeners. |
events | Events Event | readonly | A collection of events. |
hiddenTexts | HiddenTexts HiddenText | readonly | A collection of hidden text objects. |
id | number | readonly | The unique ID of the Note. |
index | number | readonly | The index of the Note within its containing object. |
insertionPoints | InsertionPoints InsertionPoint | readonly | A collection of insertion points. |
isValid | bool | readonly | Returns true if the object specifier resolves to valid objects. |
label | string | r/w | A property that can be set to any string. |
lines | Lines Line | readonly | A collection of lines. |
modificationDate | Date | readonly | The date and time the note was last modified. |
name | string | r/w | The name of the Note; this is an alias to the Note's label property. |
paragraphs | Paragraphs Paragraph | readonly | A collection of paragraphs. |
parent | CellInsertionPoint Story TextFrame XmlStory |
readonly | The parent of the Note (a XmlStory, Story, TextFrame, InsertionPoint or Cell). |
properties | Object | r/w | A property that allows setting of several properties at the same time. |
storyOffset | InsertionPoint | readonly | The insertion point before the table in the story containing the table. |
textColumns | TextColumns TextColumn | readonly | A collection of text columns. |
textStyleRanges | TextStyleRanges TextStyleRange | readonly | A collection of text style ranges. |
textVariableInstances | TextVariableInstances TextVariableInstance | readonly | A collection of text variable instances. |
texts | Texts Text | readonly | A collection of text objects. |
userName | string | readonly | The user who made the note. |
words | Words Word | readonly | A collection of words. |
Methods
Instances
EventListener addEventListener (eventType:
string, handler:
varies[, captures:
bool=false])
Adds an event listener.
Parameter | Type | Description |
---|---|---|
eventType | string | The event type. |
handler | File JavaScript Function | The event handler. Can accept: File or JavaScript Function. |
captures | bool | This parameter is obsolete. (Optional) (default: false) |
void convertToText ()
Converts the note to story text.
string extractLabel (key:
string)
Gets the label value associated with the specified key.
Parameter | Type | Description |
---|---|---|
key | string | The key. |
Array of Note getElements ()
Resolves the object specifier, creating an array of object references.
void insertLabel (key:
string, value:
string)
Sets the label to the value associated with the specified key.
Parameter | Type | Description |
---|---|---|
key | string | The key. |
value | string | The value. |
Note move (to:
LocationOptions[, reference:
varies])
Moves the note to the specified location.
Parameter | Type | Description |
---|---|---|
to | LocationOptions: LocationOptions.BEFORE LocationOptions.AFTER LocationOptions.AT_END LocationOptions.AT_BEGINNING LocationOptions.UNKNOWN | The new location relative to the reference object or within the containing object. |
reference | Story Text | The reference object. Note: Required when the to parameter specifies before or after. Can accept: Text or Story. (Optional) |
void remove ()
Deletes the Note.
bool removeEventListener (eventType:
string, handler:
varies[, captures:
bool=false])
Removes the event listener.
Parameter | Type | Description |
---|---|---|
eventType | string | The registered event type. |
handler | File JavaScript Function | The registered event handler. Can accept: File or JavaScript Function. |
captures | bool | This parameter is obsolete. (Optional) (default: false) |
string toSource ()
Generates a string which, if executed, will return the Note.
Used in:
Note Notes.nextItem (obj: Note)
Note Notes.previousItem (obj: Note)
Return
Note Character.convertToNote ()
Note InsertionPoint.convertToNote ()
Note Line.convertToNote ()
Array of Note Note.getElements ()
Note Note.move (to: LocationOptions[, reference: varies])
Note Notes.[] (index: number)
Note Notes.add ([at: LocationOptions=LocationOptions.UNKNOWN][, reference: varies][, withProperties: Object])
Note Notes.anyItem ()
Array of Note Notes.everyItem ()
Note Notes.firstItem ()
Note Notes.item (index: varies)
Note Notes.itemByID (id: number)
Note Notes.itemByName (name: string)
Array of Note Notes.itemByRange (from: varies, to: varies)
Note Notes.lastItem ()
Note Notes.middleItem ()
Note Notes.nextItem (obj: Note)
Note Notes.previousItem (obj: Note)
Note Paragraph.convertToNote ()
Note Text.convertToNote ()
Note TextColumn.convertToNote ()
Note TextStyleRange.convertToNote ()
Note Word.convertToNote ()
Jongware, 28-Apr-2012 v3.0.3i | Contents :: Index |