Esempio n. 1
0
        /**
         * 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);
        }
Esempio n. 2
0
        /**
         * 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);
        }