Note

A note in a story.

Methods:

addEventListener, convertToText, extractLabel, getElements, insertLabel, move, remove, removeEventListener, toSource, toSpecifier

Objects:

Boolean, Characters, Date, EventListeners, Events, HiddenTexts, InsertionPoints, Lines, Number, Object, Paragraphs, String, TextColumns, TextStyleRanges, TextVariableInstances, Texts, Words,

Property Listing

Property

Type

Access

Description

characters

Characters Character

readonly

A collection of characters.

collapsed

Boolean

read/write

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

Boolean

readonly

Returns true if the object specifier resolves to valid objects.

label

String

read/write

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

read/write

The name of the Note; this is an alias to the Note's label property.

paragraphs

Paragraphs Paragraph

readonly

A collection of paragraphs.

parent

EndnoteTextFrame

InsertionPoint

Story

TextFrame

Cell

XmlStory

readonly

The parent of the Note (a XmlStory, Story, TextFrame, EndnoteTextFrame, InsertionPoint or Cell).

properties

Object

read/write

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.

Method Listing

EventListener addEventListener (eventType:String, handler:Varies File JavaScriptFunction, [captures:Boolean=Boolean])

Adds an event listener.

Parameter

Type

Description

eventType

String

The event type.

handler

File

JavaScriptFunction

The event handler. Can accept: File or JavaScript Function.

captures

Boolean

This parameter is obsolete. (Optional)

(default: false)

undefined 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.

Note getElements ()

Resolves the object specifier, creating an array of object references.

undefined 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 Text Story)

Moves the note to the specified location.

Parameter

Type

Description

to

LocationOptions

LocationOptions.AFTER

LocationOptions.AT_BEGINNING

LocationOptions.AT_END

LocationOptions.BEFORE

LocationOptions.UNKNOWN

The new location relative to the reference object or within the containing object.

reference

Text

Story

The reference object. Note: Required when the to parameter specifies before or after. Can accept: Text or Story. (Optional)

undefined remove ()

Deletes the Note.

Boolean removeEventListener (eventType:String, handler:Varies File JavaScriptFunction, [captures:Boolean=Boolean])

Removes the event listener.

Parameter

Type

Description

eventType

String

The registered event type.

handler

File

JavaScriptFunction

The registered event handler. Can accept: File or JavaScript Function.

captures

Boolean

This parameter is obsolete. (Optional)

(default: false)

String toSource ()

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

String toSpecifier ()

Retrieves the object specifier.

Object of

Character.parent

Event.parent

EventListener.parent

HiddenText.parent

InsertionPoint.parent

Line.parent

MutationEvent.parent

Paragraph.parent

Text.parent

TextColumn.parent

TextStyleRange.parent

TextVariableInstance.parent

Word.parent

Return

Text.convertToNote()

Character.convertToNote()

Word.convertToNote()

Line.convertToNote()

TextColumn.convertToNote()

Paragraph.convertToNote()

TextStyleRange.convertToNote()

InsertionPoint.convertToNote()

Notes.add()

Note.move()

Note.getElements()

Notes.anyItem()

Notes.everyItem()

Notes.nextItem()

Notes.previousItem()

Notes.itemByID()

Notes.item()

Notes.[]()

Notes.itemByName()

Notes.itemByRange()

Notes.firstItem()

Notes.lastItem()

Notes.middleItem()