コード例 #1
0
ファイル: XWPFTableRow.cs プロジェクト: thachgiasoft/shuijin
 /**
  * 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);
 }
コード例 #2
0
ファイル: XWPFTableRow.cs プロジェクト: ruo2012/Npoi.Core
        /**
         * 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);
        }