/** * create and return a list of all XWPFTableCell * who belongs to this row * @return a list of {@link XWPFTableCell} */ public List <XWPFTableCell> GetTableCells() { if (tableCells == null) { List <XWPFTableCell> cells = new List <XWPFTableCell>(); foreach (CT_Tc tableCell in ctRow.GetTcList()) { cells.Add(new XWPFTableCell(tableCell, this, table.Body)); } this.tableCells = cells; } return(tableCells); }
/** * create and return a list of all XWPFTableCell * who belongs to this row * @return a list of {@link XWPFTableCell} */ public List <XWPFTableCell> GetTableCells() { if (tableCells == null) { List <XWPFTableCell> cells = new List <XWPFTableCell>(); foreach (CT_Tc tableCell in ctRow.GetTcList()) { cells.Add(new XWPFTableCell(tableCell, this, table.Body)); } //TODO: it is possible to have an SDT that contains a cell in within a row //need to modify this code so that it pulls out SDT wrappers around cells, too. this.tableCells = cells; } return(tableCells); }