PageSetupFootnoteOptions Property

Provides options that control numbering and positioning of footnotes in this section.

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

ExpandedSyntax

public FootnoteOptions FootnoteOptions { get; }

Property Value

Type: FootnoteOptions

ExpandedExamples

Shows how to set options for footnotes and endnotes in current section.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);

// Insert text and a reference for it in the form of a footnote
builder.Write("Hello world!.");
builder.InsertFootnote(FootnoteType.Footnote, "Footnote reference text.");

// Set options for footnote position and numbering
FootnoteOptions footnoteOptions = doc.Sections[0].PageSetup.FootnoteOptions;
footnoteOptions.Position = FootnotePosition.BeneathText;
footnoteOptions.RestartRule = FootnoteNumberingRule.RestartPage;
footnoteOptions.StartNumber = 1;

// Endnotes also have a similar options object
builder.Write(" Hello again.");
builder.InsertFootnote(FootnoteType.Footnote, "Endnote reference text.");

EndnoteOptions endnoteOptions = doc.Sections[0].PageSetup.EndnoteOptions;
endnoteOptions.Position = EndnotePosition.EndOfDocument;
endnoteOptions.RestartRule = FootnoteNumberingRule.Continuous;
endnoteOptions.StartNumber = 1;

doc.Save(ArtifactsDir + "PageSetup.FootnoteOptions.docx");

ExpandedSee Also