예제 #1
0
        /**
         * inserts an existing XWPFTable to the arrays bodyElements and tables
         * @see Npoi.Core.XWPF.UserModel.IBody#insertTable(int, Npoi.Core.XWPF.UserModel.XWPFTable)
         */

        public void InsertTable(int pos, XWPFTable table)
        {
            bodyElements.Insert(pos, table);
            int i;

            for (i = 0; i < ctTc.GetTblList().Count; i++)
            {
                CT_Tbl tbl = ctTc.GetTblArray(i);
                if (tbl == table.GetCTTbl())
                {
                    break;
                }
            }
            tables.Insert(i, table);
        }