Microsoft Word Suite
119
Class: footnote
Plural
footnotes
Represents a footnote positioned at the bottom of the page or beneath text. The footnotes list
represents the footnotes in a selection, text range, or document.
Use footnote index, where index is the index number, to return a single footnote object. The index
number represents the position of the footnote in the selection, range, or document. The following
example applies red formatting to the first footnote in the selection.
if (count of footnotes of selection) 1 then
set color index of font object of note reference of footnote 1 of ¬
selection to red
end if
To add a footnote to the footnotes list, use the make command. The following example inserts an
automatically numbered footnote immediately after the selection.
collapse range text object of selection direction collapse end
set myFootnote to make new footnote at active document with properties ¬
{text range:text object of selection}
set content of text object of myFootnote to "The Willow Tree, (Lone Creek ¬
Press,
1996)."
Remarks
Footnotes positioned at the end of a document or section are considered endnotes and are included
in the
endnotes
list.
Properties
entry index
Returns a number that indicates the position of the footnote in the footnotes list. Read-only.
note reference
Returns a text range object that represents a footnote mark. Read-only.
text object
Returns a text range object that represents the portion of a document that's contained in the
footnote object. Read-only.
Class: footnote options
Represent all the options for footnotes in a selection, text range, or document.
Use the footnote options property to return the footnote options object. The following example
changes all of the footnotes in the active document to endnotes.
swap with endnotes footnote options of active document