public class XWPFFootnotes extends XWPFAbstractFootnotesEndnotes
XWPFFootnote).| Constructor and Description |
|---|
XWPFFootnotes()
Construct XWPFFootnotes from scratch for a new document.
|
XWPFFootnotes(PackagePart part)
Construct XWPFFootnotes from a package part
|
| Modifier and Type | Method and Description |
|---|---|
XWPFFootnote |
addFootnote(CTFtnEdn note)
Add a CT footnote to the document
|
void |
addFootnote(XWPFFootnote footnote)
Add an
XWPFFootnote to the document |
XWPFFootnote |
createFootnote()
Create a new footnote and add it to the document.
|
List<XWPFFootnote> |
getFootnotesList()
Get the list of
XWPFFootnote in the Footnotes part. |
boolean |
removeFootnote(int pos)
Remove the specified footnote if present.
|
void |
setFootnotes(CTFootnotes footnotes)
Sets the ctFootnotes
|
getFootnoteById, getIdManager, getXWPFDocument, setIdManager, setXWPFDocument_invokeOnDocumentRead, addRelation, createRelationship, createRelationship, createRelationship, getPackagePart, getParent, getRelationById, getRelationId, getRelationPartById, getRelationParts, getRelations, isCommited, isCommitted, setCommited, setCommitted, toStringpublic XWPFFootnotes(PackagePart part) throws IOException, OpenXML4JException
part - the package part holding the data of the footnotes,IOExceptionOpenXML4JExceptionpublic XWPFFootnotes()
@Internal public void setFootnotes(CTFootnotes footnotes)
footnotes - Collection of CTFntEdn objects.public XWPFFootnote createFootnote()
XWPFFootnotepublic boolean removeFootnote(int pos)
pos - Array position of the footnote to be removedpublic void addFootnote(XWPFFootnote footnote)
XWPFFootnote to the documentfootnote - Footnote to addIOException@Internal public XWPFFootnote addFootnote(CTFtnEdn note)
note - CTFtnEdn to add.IOExceptionpublic List<XWPFFootnote> getFootnotesList()
XWPFFootnote in the Footnotes part.Copyright © 2010 - 2020 Adobe. All Rights Reserved