Bookmark.FootnoteOptions (Propiedad)

Obtiene un objeto FootnoteOptions que representa las notas a pie de página de un control Bookmark.

Espacio de nombres:  Microsoft.Office.Tools.Word
Ensamblado:  Microsoft.Office.Tools.Word (en Microsoft.Office.Tools.Word.dll)

Sintaxis

'Declaración
ReadOnly Property FootnoteOptions As FootnoteOptions
    Get
FootnoteOptions FootnoteOptions { get; }

Valor de propiedad

Tipo: Microsoft.Office.Interop.Word.FootnoteOptions
Un objeto FootnoteOptions que representa las notas a pie de página de un control Bookmark.

Ejemplos

El ejemplo de código siguiente agrega un control Bookmark con texto al primer párrafo y establece el número de inicio de las notas a pie de página del marcador en 1 y el estilo del número en wdNoteNumberStyleArabic. A continuación, inserta una nota a pie de página bajo el texto del marcador.

Se trata de un ejemplo para una personalización en el nivel del documento.

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

Seguridad de .NET Framework

Vea también

Referencia

Bookmark Interfaz

Microsoft.Office.Tools.Word (Espacio de nombres)