Bookmark.FootnoteOptions Eigenschaft

Definition

Ruft ein FootnoteOptions-Objekt ab, das die Fußnoten in einem Bookmark-Steuerelement darstellt.

public Microsoft.Office.Interop.Word.FootnoteOptions FootnoteOptions { get; }

Eigenschaftswert

FootnoteOptions

Ein FootnoteOptions-Objekt, das die Fußnoten in einem Bookmark-Steuerelement darstellt.

Beispiele

Im folgenden Codebeispiel wird ein- Bookmark Steuerelement mit Text zum ersten Absatz hinzugefügt, und anschließend wird die Anfangs Anzahl von Fußnoten innerhalb des Lesezeichens auf 1 und das Format der Zahl auf festgelegt wdNoteNumberStyleArabic . Anschließend fügt Sie einen Fußnote unterhalb des Lesezeichen Texts ein.

Dieses Beispiel gilt für eine Anpassung auf Dokument Ebene.

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);
}
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

Gilt für