Export (0) Print
Expand All
Expand Minimize

Document.Footnotes Property

Gets a Footnotes collection that represents all the footnotes in the document.

Namespace: Microsoft.Office.Tools.Word
Assembly: Microsoft.Office.Tools.Word (in microsoft.office.tools.word.dll)

public virtual Footnotes Footnotes { get; }

Property Value

A Footnotes collection that represents all the footnotes in the document.

The following code example adds text to the first paragraph and then adds a footnote to the second word.

private void DocumentFootnotes()
{
    object text = "Sample footnote text.";
    this.Paragraphs[1].Range.InsertParagraphAfter();
    this.Paragraphs[1].Range.Text = "This is sample paragraph text.";
    this.Footnotes.Location = Word.WdFootnoteLocation.wdBeneathText;
    this.Footnotes.NumberStyle = Word.WdNoteNumberStyle.wdNoteNumberStyleLowercaseRoman;
    this.Footnotes.Add(this.Paragraphs[1].Range.Words[2].Characters[2], ref missing, ref text);
}

Show:
© 2014 Microsoft