Exemplo n.º 1
0
 public bool AddRow(XWPFTableRow row, int pos)
 {
     if (pos < 0 || pos > this.tableRows.Count)
     {
         return(false);
     }
     this.ctTbl.InsertNewTr(pos);
     this.ctTbl.SetTrArray(pos, row.GetCtRow());
     this.tableRows.Insert(pos, row);
     return(true);
 }
Exemplo n.º 2
0
 /**
  * add a new Row to the table
  * at position pos
  * @param row	the row which should be Added
  */
 public bool AddRow(XWPFTableRow row, int pos)
 {
     if (pos >= 0 && pos <= tableRows.Count)
     {
         ctTbl.InsertNewTr(pos);
         ctTbl.SetTrArray(pos, row.GetCtRow());
         tableRows.Insert(pos, row);
         return(true);
     }
     return(false);
 }
Exemplo n.º 3
0
 /**
  * add a new Row to the table
  * at position pos
  * @param row	the row which should be Added
  */
 public bool AddRow(XWPFTableRow row, int pos)
 {
     if (pos >= 0 && pos <= tableRows.Count)
     {
         ctTbl.InsertNewTr(pos);
         ctTbl.SetTrArray(pos, row.GetCtRow());
         tableRows.Insert(pos, row);
         return true;
     }
     return false;
 }
Exemplo n.º 4
0
 /**
  * add a new Row to the table
  * 
  * @param row	the row which should be Added
  */
 public void AddRow(XWPFTableRow row)
 {
     ctTbl.AddNewTr();
     ctTbl.SetTrArray(GetNumberOfRows()-1, row.GetCtRow());
     tableRows.Add(row);
 }
Exemplo n.º 5
0
 public void AddRow(XWPFTableRow row)
 {
     this.ctTbl.AddNewTr();
     this.ctTbl.SetTrArray(this.GetNumberOfRows() - 1, row.GetCtRow());
     this.tableRows.Add(row);
 }