Пример #1
0
        private static IEnumerable <Cell> InitializeCells(
            this Word.TableRow row,
            int rowIndex,
            List <GridSpanInfo[]> spans,
            IImageAccessor imageAccessor,
            IStyleFactory styleFactory)
        {
            var cells = row
                        .Cells()
                        .Select((cell, index) =>
            {
                var gridPosition = GetCellGridPosition(rowIndex, index, spans);
                var c            = Cell.From(cell, gridPosition, imageAccessor, styleFactory);
                return(c);
            })
                        .ToArray();

            return(cells);
        }