java.lang.Objectcom.aspose.words.EndnoteOptions
public class EndnoteOptions
Example:
Document doc = new Document(getMyDir() + "Document.FootnoteEndnote.docx");
doc.getEndnoteOptions().setPosition(EndnotePosition.END_OF_SECTION);
Property Getters/Setters Summary | ||
---|---|---|
int | getNumberStyle() | |
void | setNumberStyle(int value) | |
Specifies the number format for automatically numbered endnotes. The value of the property is NumberStyle integer constant. | ||
int | getPosition() | |
void | setPosition(int value) | |
Specifies the endnotes position. The value of the property is EndnotePosition integer constant. | ||
int | getRestartRule() | |
void | setRestartRule(int value) | |
Determines when automatic numbering restarts. The value of the property is FootnoteNumberingRule integer constant. | ||
int | getStartNumber() | |
void | setStartNumber(int value) | |
Specifies the starting number or character for the first automatically numbered endnotes. |
Property Getters/Setters Detail |
---|
getNumberStyle/setNumberStyle | |
public int getNumberStyle() / public void setNumberStyle(int value) |
Not all number styles are applicable for this property. For the list of applicable number styles see the Insert Footnote or Endnote dialog box in Microsoft Word. If you select a number style that is not applicable, Microsoft Word will revert to a default value.
Example:
Shows how to define numbering format for endnotes in the document.Document doc = new Document(getMyDir() + "Document.FootnoteEndnote.docx"); doc.getEndnoteOptions().setNumberStyle(NumberStyle.ARABIC_1);
getPosition/setPosition | |
public int getPosition() / public void setPosition(int value) |
Example:
Shows how to define endnote position in the document.Document doc = new Document(getMyDir() + "Document.FootnoteEndnote.docx"); doc.getEndnoteOptions().setPosition(EndnotePosition.END_OF_SECTION);
getRestartRule/setRestartRule | |
public int getRestartRule() / public void setRestartRule(int value) |
Not all values are applicable to endnotes.
To ascertain which values are applicable see
Example:
Shows how to define when automatic numbering for endnotes restarts in the document.Document doc = new Document(getMyDir() + "Document.FootnoteEndnote.docx"); doc.getEndnoteOptions().setRestartRule(FootnoteNumberingRule.RESTART_PAGE);
getStartNumber/setStartNumber | |
public int getStartNumber() / public void setStartNumber(int value) |
This property has effect only when
Example:
Shows how to define the starting number or character for the first automatically numbered endnotes.Document doc = new Document(getMyDir() + "Document.FootnoteEndnote.docx"); doc.getEndnoteOptions().setStartNumber(1);