Proprietà Document.Endnotes (System 2007)

Aggiornamento: novembre 2007

Ottiene un insieme di Endnotes che rappresenta tutte le note di chiusura del documento.

Spazio dei nomi:  Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word.v9.0 (in Microsoft.Office.Tools.Word.v9.0.dll)

Sintassi

<BrowsableAttribute(False)> _
Public ReadOnly Property Endnotes As Endnotes

Dim instance As Document
Dim value As Endnotes

value = instance.Endnotes
[BrowsableAttribute(false)]
public Endnotes Endnotes { get; }

Valore proprietà

Tipo: Microsoft.Office.Interop.Word.Endnotes

Insieme di Endnotes che rappresenta tutte le note di chiusura del documento.

Esempi

Nell'esempio di codice riportato di seguito viene illustrato come aggiungere testo al primo paragrafo e una nota di chiusura alla seconda parola.

Questo esempio è per una personalizzazione a livello di documento.

Private Sub DocumentEndnotes()
    Dim text As Object = "Sample endnote text."
    Me.Paragraphs(1).Range.InsertParagraphAfter()
    Me.Paragraphs(1).Range.Text = "This is sample paragraph text."
    Me.Endnotes.Location = Word.WdEndnoteLocation.wdEndOfDocument
    Me.Endnotes.NumberStyle = Word.WdNoteNumberStyle.wdNoteNumberStyleLowercaseRoman
    Me.Endnotes.Add(Me.Paragraphs(1).Range.Words(2).Characters(2), , text)
End Sub 
private void DocumentEndnotes()
{
    object text = "Sample endnote text.";
    this.Paragraphs[1].Range.InsertParagraphAfter();
    this.Paragraphs[1].Range.Text = "This is sample paragraph text.";
    this.Endnotes.Location = Word.WdEndnoteLocation.wdEndOfDocument;
    this.Endnotes.NumberStyle = Word.WdNoteNumberStyle.wdNoteNumberStyleLowercaseRoman;
    this.Endnotes.Add(this.Paragraphs[1].Range.Words[2].Characters[2], ref missing, ref text);

}

Autorizzazioni

Vedere anche

Riferimenti

Document Classe

Membri Document

Spazio dei nomi Microsoft.Office.Tools.Word