private void AddBasicStyles(List <ILayout> results, List <WStyle> styles) { var area = new WholeTableArea(); foreach (var style in styles) { if (style.StyleRunProperties != null) { results.Add(new RunPropsLayout { Area = area, Element = style.StyleRunProperties }); } if (style.StyleParagraphProperties != null) { results.Add(new ParagraphPropsLayout { Area = area, Element = style.StyleParagraphProperties }); } AddTableProps(results, area, style.StyleTableProperties); AddCellProps(results, area, style.StyleTableCellProperties); AddRowProps(results, area, style.Elements <TableRowProperties>().FirstOrDefault()); } }
public void Select_Test() { var grid = new GridState { CellsMatrix = Utils.BuildCellMatrix(3, 3) }; var area = new WholeTableArea(); Assert.AreEqual(grid.AllCells.Value, area.Select(grid)); }