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)); }