Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Gets a Footnotes collection that represents all the footnotes in the document.
Namespace: Microsoft.Office.Tools.Word
Assembly: Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)
Syntax
'Declaration
Public ReadOnly Property Footnotes As Footnotes
public Footnotes Footnotes { get; }
Property Value
Type: Microsoft.Office.Interop.Word.Footnotes
A Footnotes collection that represents all the footnotes in the document.
Examples
The following code example adds text to the first paragraph and then adds a footnote to the second word. To use this example, run it from the ThisDocument class in a document-level project.
Private Sub DocumentFootnotes()
Dim text As Object = "Sample footnote text."
Me.Paragraphs(1).Range.InsertParagraphAfter()
Me.Paragraphs(1).Range.Text = "This is sample paragraph text."
Me.Footnotes.Location = Word.WdFootnoteLocation.wdBeneathText
Me.Footnotes.NumberStyle = Word.WdNoteNumberStyle.wdNoteNumberStyleLowercaseRoman
Me.Footnotes.Add(Me.Paragraphs(1).Range.Words(2).Characters(2), , text)
End Sub
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);
}
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.