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 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.PAGE_BREAK);
builder.write("Text 3. ");
builder.insertFootnote(FootnoteType.ENDNOTE, "Endnote 3", "Custom reference mark");

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() + "InlineStory.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.