/** * Appends a new {@link XWPFTable} to this footnote * * @return The new {@link XWPFTable} */ public XWPFTable CreateTable() { XWPFTable table = new XWPFTable(ctFtnEdn.AddNewTbl(), this); if (bodyElements.Count == 0) { XWPFParagraph p = CreateParagraph(); EnsureFootnoteRef(p); } bodyElements.Add(table); tables.Add(table); return(table); }
/** * add a new table to the end of the footnote * @param table * @return the Added XWPFTable */ public XWPFTable AddNewTbl(CT_Tbl table) { CT_Tbl newTable = ctFtnEdn.AddNewTbl(); newTable.Set(table); XWPFTable xTable = new XWPFTable(newTable, this); tables.Add(xTable); return(xTable); }