DocumentEndnoteOptions Property

Provides options that control numbering and positioning of endnotes in this document.

Namespace:  Aspose.Words
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.9.0

Syntax

public EndnoteOptions EndnoteOptions { get; }

Property Value

Type: EndnoteOptions

Examples

Shows how to insert endnotes, and modify their appearance.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);

builder.Write("Text 1. ");
builder.InsertFootnote(FootnoteType.Endnote, "Endnote 1");
builder.Write("Text 2. ");
builder.InsertFootnote(FootnoteType.Endnote, "Endnote 2");
builder.InsertBreak(BreakType.PageBreak);
builder.Write("Text 3. ");
builder.InsertFootnote(FootnoteType.Endnote, "Endnote 3", "Custom reference mark");

doc.EndnoteOptions.Position = EndnotePosition.EndOfDocument;
doc.EndnoteOptions.NumberStyle = NumberStyle.UppercaseRoman;
doc.EndnoteOptions.RestartRule = FootnoteNumberingRule.Continuous;
doc.EndnoteOptions.StartNumber = 1;

doc.Save(ArtifactsDir + "InlineStory.Endnotes.docx");

See Also