com.aspose.words

Class EndnotePosition

  • java.lang.Object
    • com.aspose.words.EndnotePosition
public class EndnotePosition 
extends java.lang.Object

Utility class containing constants. Defines the endnote position.

Example:

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

// Insert 3 paragraphs with an endnote at the end of each one
builder.write("Text 1. ");
builder.insertFootnote(FootnoteType.ENDNOTE, "Endnote 1");
builder.write("Text 2. ");
builder.insertFootnote(FootnoteType.ENDNOTE, "Endnote 2");
builder.insertBreak(BreakType.PAGE_BREAK);
builder.write("Text 3. ");
builder.insertFootnote(FootnoteType.ENDNOTE, "Endnote 3", "Custom reference mark");

// Edit the numbering and positioning of endnotes
doc.getEndnoteOptions().setPosition(EndnotePosition.END_OF_DOCUMENT);
doc.getEndnoteOptions().setNumberStyle(NumberStyle.UPPERCASE_ROMAN);
doc.getEndnoteOptions().setRestartRule(FootnoteNumberingRule.CONTINUOUS);
doc.getEndnoteOptions().setStartNumber(1);

doc.save(getArtifactsDir() + "Document.Endnotes.docx");
See Also:
EndnoteOptions

Field Summary
static final intEND_OF_SECTION = 0
Endnotes are output at the end of the section.
static final intEND_OF_DOCUMENT = 3
Endnotes are output at the end of the document.
 

    • Field Detail

      • END_OF_SECTION = 0

        public static final int END_OF_SECTION
        Endnotes are output at the end of the section.
      • END_OF_DOCUMENT = 3

        public static final int END_OF_DOCUMENT
        Endnotes are output at the end of the document.