Freigeben über


Bookmark.Footnotes-Eigenschaft

Ruft eine Footnotes-Auflistung ab, die alle Fußnoten in einem Bookmark-Steuerelement darstellt.

Namespace:  Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)

Syntax

'Declaration
ReadOnly Property Footnotes As Footnotes
Footnotes Footnotes { get; }

Eigenschaftswert

Typ: Microsoft.Office.Interop.Word.Footnotes
Eine Footnotes-Auflistung, die alle Fußnoten in einem Bookmark-Steuerelement darstellt.

Beispiele

Im folgenden Codebeispiel wird dem ersten Absatz ein Bookmark-Steuerelement mit Text hinzugefügt. Anschließend wird die Nummer, mit der die Fußnoten im Lesezeichen beginnen, auf eins und das Format der Nummer auf wdNoteNumberStyleArabic festgelegt. Dann wird unter dem Lesezeichentext eine Fußnote eingefügt.

Dieses Beispiel bezieht sich auf eine Anpassung auf Dokumentebene.

Private Sub BookmarkFootnoteOptions()

    Me.Paragraphs(1).Range.InsertParagraphBefore()
    Dim Bookmark1 As Microsoft.Office.Tools.Word.Bookmark = _
        Me.Controls.AddBookmark(Me.Paragraphs(1).Range, "Bookmark1")

    Bookmark1.Text = "This is sample bookmark text."
    Bookmark1.FootnoteOptions.NumberStyle = Word.WdNoteNumberStyle.wdNoteNumberStyleArabic
    Bookmark1.FootnoteOptions.StartingNumber = 1
    Bookmark1.Footnotes.Location = Word.WdFootnoteLocation.wdBeneathText
    Bookmark1.Footnotes.Add(Range:=Bookmark1.Range, Text:="This is my footnote text.")

End Sub
private void BookmarkFootnoteOptions()
{
    object Text = "This is my footnote text.";
    this.Paragraphs[1].Range.InsertParagraphBefore();
    Microsoft.Office.Tools.Word.Bookmark bookmark1 =
        this.Controls.AddBookmark(this.Paragraphs[1].Range,
        "bookmark1");
    bookmark1.Text = "This is sample bookmark text.";
    bookmark1.FootnoteOptions.NumberStyle =
        Word.WdNoteNumberStyle.wdNoteNumberStyleArabic;
    bookmark1.FootnoteOptions.StartingNumber = 1;
    bookmark1.Footnotes.Location =
        Word.WdFootnoteLocation.wdBeneathText;
    bookmark1.Footnotes.Add(bookmark1.Range, 
        ref missing, ref Text);
}

.NET Framework-Sicherheit

Siehe auch

Referenz

Bookmark Schnittstelle

Microsoft.Office.Tools.Word-Namespace