InDesign2026
API 21.5.1.73
Object

Endnote

An endnote.

Properties

NameType AccessDescription
Characters<Character> readonly A collection of characters.
EndnoteRange read/write The endnote range object.
EventListeners<EventListener> readonly A collection of event listeners.
Events<Event> readonly A collection of events.
Number readonly The unique ID of the Endnote.
Number readonly The index of the Endnote within its containing object.
InsertionPoints<InsertionPoint> readonly A collection of insertion points.
Boolean readonly Returns true if the object specifier resolves to valid objects.
String read/write A property that can be set to any string.
Lines<Line> readonly A collection of lines.
String read/write The name of the Endnote; this is an alias to the Endnote's label property.
Cell | Story | XmlStory | InsertionPoint | Table readonly The parent of the Endnote (a InsertionPoint, Story, XmlStory, Cell or Table).
Object read/write A property that allows setting of several properties at the same time.
InsertionPoint readonly The location of the endnote marker in the parent story
TextColumns<TextColumn> readonly A collection of text columns.
TextStyleRanges<TextStyleRange> readonly A collection of text style ranges.
Texts<Text> readonly A collection of text objects.
Words<Word> readonly A collection of words.

Methods

EventListener

Adds an event listener.

eventType String The event type.
handler File | JavaScriptFunction The event handler. Can accept: File or JavaScript Function.
captures? Boolean This parameter is obsolete.
void

Deletes the endnote reference and the associated endnote text range.

String

Gets the label value associated with the specified key.

key String The key.
Endnote[]

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

void

Sets the label to the value associated with the specified key.

key String The key.
value String The value.
void

Insert the text in endnote text range at specified text index. Insertion position should lie within the start and end range indices excluding the markers

storyOffset InsertionPoint The location within the story, specified as an insertion point.
contents String The content to insert.
Boolean

Removes the event listener.

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

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

String

Retrieves the object specifier.

Object of 11

Properties elsewhere that hold a Endnote.

Parameter of 3

Method parameters that accept a Endnote.

Return 14

Methods that return a Endnote.