Example #1
0
        public static Grid InitializeGrid(this Word.Table table)
        {
            var columnWidths = table
                               .GetGridColumnWidths();

            var rowHeights = table
                             .ChildsOfType <Word.TableRow>()
                             .Select(r => r.ToGridRow());

            return(new Grid(columnWidths, rowHeights));
        }