Adobe InDesign CS3 (5.0) Object Model JS: Footnote

InDesign CS3

Class

Footnote

 A footnote.

QuickLinks

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

Hierarchy

Character | InsertionPoint | Line | Paragraph | Story | Text | TextColumn | TextFrame | TextStyleRange | Word | XmlStory
Footnote
Character | GraphicLine | Group | InsertionPoint | Line | Oval | PageItem | Paragraph | Polygon | Rectangle | Text | TextColumn | TextFrame | TextStyleRange | TextVariableInstance | 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.
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
XmlStory
readonlyThe parent of the Footnote (a XmlStory, 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.
storyOffsetInsertionPoint readonlyThe location of the footnote marker in the parent story.
textColumnsTextColumns readonlyA collection of text columns.
textFramesTextFrames readonlyA collection of text frames.
textStyleRangesTextStyleRanges readonlyA collection of text style ranges.
textVariableInstancesTextVariableInstances readonlyA collection of text variable instances.
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 Footnote 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

GraphicLine.parent

Group.parent

Oval.parent

PageItem.parent

Polygon.parent

Rectangle.parent

TextFrame.parent

Used in:

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

Footnote Footnotes.nextItem (obj: Footnote)

Footnote Footnotes.previousItem (obj: Footnote)

TextVariableInstance TextVariableInstances.add ([to: LocationOptions=LocationOptions.UNKNOWN][, reference: any][, withProperties: Object])

Return

Array of Footnote Footnote.getElements ()

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