Example #1
0
        public static Cell From(
            Word.TableCell wordCell,
            GridPosition gridPosition,
            IImageAccessor imageAccessor,
            IStyleFactory styleFactory)
        {
            var childs = wordCell
                         .RenderableChildren()
                         .CreatePageElements(imageAccessor, styleFactory)
                         .ToArray();

            var borderStyle = wordCell.GetBorderStyle();

            return(new Cell(childs, gridPosition, borderStyle));
        }