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 int | END_OF_SECTION = 0 | |
Endnotes are output at the end of the section.
|
static final int | END_OF_DOCUMENT = 3 | |
Endnotes are output at the end of the document.
|
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.
See Also:
Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
Aspose.Words Support Forum - our preferred method of support.