|
java.lang.Object
Node
CompositeNode
InlineStory
com.aspose.words.Footnote
- All Implemented Interfaces:
- java.lang.Iterable, java.lang.Cloneable, java.lang.Iterable
public class Footnote - extends InlineStory
Represents a container for text of a footnote or endnote.
The Footnote class is used to represent both footnotes and endnotes in a Word document. Footnote is an inline-level node and can only be a child of Paragraph. Footnote can contain Paragraph and Table child nodes. Example: Shows how to add a footnote to a paragraph in the document.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.write("Some text is added.");
Footnote footnote = new Footnote(doc, FootnoteType.FOOTNOTE);
builder.getCurrentParagraph().appendChild(footnote);
footnote.getParagraphs().add(new Paragraph(doc));
footnote.getFirstParagraph().getRuns().add(new Run(doc, "Footnote text.")); - See Also:
- FootnoteType, DocumentBuilder.insertFootnote(int, java.lang.String), FootnoteOptions
|
Constructor Summary |
Footnote(Document doc, int footnoteType)
Initializes an instance of the Footnote class.
|
|