Aracılığıyla paylaş


DocumentBase.Endnotes Özellik

Alır bir Endnotes belgedeki tüm sonnotlar temsil eden koleksiyonu.

Ad alanı:  Microsoft.Office.Tools.Word
Derleme:  Microsoft.Office.Tools.Word.v4.0.Utilities (Microsoft.Office.Tools.Word.v4.0.Utilities.dll içinde)

Sözdizimi

'Bildirim
Public ReadOnly Property Endnotes As Endnotes
public Endnotes Endnotes { get; }

Özellik Değeri

Tür: Microsoft.Office.Interop.Word.Endnotes
Bir Endnotes belgedeki tüm sonnotlar temsil eden koleksiyonu.

Örnekler

Aşağıdaki kod örneği, ilk paragraf metni ekler ve sonra ikinci sözcüğü Sonnot ekler.Bu örneği kullanmak için çalıştırın ThisDocument bir belge düzeyi projesinde sınıf.

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

}

.NET Framework Güvenliği

Ayrıca bkz.

Başvuru

DocumentBase Sınıf

Microsoft.Office.Tools.Word Ad Alanı