Adobe InDesign CS2 (4.0) Object Model JS: Footnote

InDesign CS2

Class

Footnote

 A footnote.

QuickLinks

convertToText, extractLabel, getElements, insertLabel, remove, toSource, toSpecifier

Hierarchy

Character | InsertionPoint | Line | Paragraph | Story | Text | TextColumn | TextFrame | TextStyleRange | Word
Footnote
Character | GraphicLine | Group | InsertionPoint | Line | Oval | PageItem | Paragraph | Polygon | Rectangle | Text | TextColumn | TextFrame | TextStyleRange | Word

Properties

PropertyTypeAccessDescription
allGraphics Array of Graphic readonlyLists all graphics contained by the Footnote.
allPageItems Array of PageItem readonlyLists all page items contained by the Footnote.
charactersCharacters readonlyA collection of characters.
contents Array of Strings
Array of Strings
NothingEnum
NothingEnum
SpecialCharacters
SpecialCharacters
SpecialCharacters
String
r/wThe text contents of the footnote. Can return: String, SpecialCharacters enumerator or Array of Strings or SpecialCharacters enumerators. Can also accept: NothingEnum enumerator or Array of Strings, SpecialCharacters enumerators or NothingEnum enumerators.
footnoteTextFrameTextFrame readonlyThe text frame this footnote appears in.
graphicLinesGraphicLines readonlyA collection of graphic lines.
groupsGroups readonlyA collection of groups.
idnumber readonlyThe unique ID of the Footnote.
indexnumber readonlyThe index of the Footnote within its containing object.
insertionPointsInsertionPoints readonlyA collection of insertion points.
labelstring r/wA property that can be set to any string.
linesLines readonlyA collection of lines.
ovalsOvals readonlyA collection of ellipses.
pageItemsPageItems readonlyThe page items collection, which can be used to process all page items in a container (such as a document, page, or group), regardless of type.
paragraphsParagraphs readonlyA collection of paragraphs.
parentCharacter
InsertionPoint
Line
Paragraph
Story
Text
TextColumn
TextFrame
TextStyleRange
Word
readonlyThe parent of the Footnote (a Story, TextFrame, InsertionPoint, TextColumn, TextStyleRange, Text, Paragraph, Line, Word or Character).
polygonsPolygons readonlyA collection of polygons.
propertiesObject r/wA property that allows setting of several properties at the same time.
rectanglesRectangles readonlyA collection of rectangles.
storyOffsetnumber readonlyThe location of this footnote from the beginning of the story.
textColumnsTextColumns readonlyA collection of text columns.
textFramesTextFrames readonlyA collection of text frames.
textStyleRangesTextStyleRanges readonlyA collection of text style ranges.
textsTexts readonlyA collection of text objects.
wordsWords readonlyA collection of words.

Methods

Instances

Text convertToText ()
Converts the footnote to part of the story text and places the converted text at the former location of the footnote marker in the text.

string extractLabel (key: string)
Gets the label value associated with the specified key.

ParameterTypeDescription
keystringThe key.

Array of Object 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.

ParameterTypeDescription
keystringThe key.
valuestringThe value.

void remove ()
Deletes the Footnote.

string toSource ()
Generates a string which, if executed, will return the Footnote.

string toSpecifier ()
Retrieves the object specifier.

Element of

Character.parent

GraphicLine.parent

Group.parent

InsertionPoint.parent

Line.parent

Oval.parent

PageItem.parent

Paragraph.parent

Polygon.parent

Rectangle.parent

Text.parent

TextColumn.parent

TextFrame.parent

TextStyleRange.parent

Word.parent

Used in:

array of Footnote Footnotes.itemByRange (from: any, to: any)

Footnote Footnotes.nextItem (obj: Footnote)

Footnote Footnotes.previousItem (obj: Footnote)

Return

Footnote Footnotes.add ([at: LocationOptions=LocationOptions.UNKNOWN][, reference: any][, withProperties: Object])

Footnote Footnotes.anyItem ()

Array of Footnote Footnotes.everyItem ()

Footnote Footnotes.firstItem ()

Footnote Footnotes.item (index: any)

Footnote Footnotes.itemByID (id: number)

Footnote Footnotes.itemByName (name: string)

Array of Footnote Footnotes.itemByRange (from: any, to: any)

Footnote Footnotes.lastItem ()

Footnote Footnotes.middleItem ()

Footnote Footnotes.nextItem (obj: Footnote)

Footnote Footnotes.previousItem (obj: Footnote)

Jongware, 27-Jun-2010 v3.0.3dContents :: Index