private void add_title(BL.Container root) { var n_title = root.AddBox(2.0, 0.5); var node_data = new RenderItem(); node_data.CategoryCell = null; node_data.ShapeText = this.Title; node_data.Cells = titleformat; n_title.Data = node_data; }
private void AddMajorRow(List<string> ycats, int row, BL.Container root, List<string> xcats, int cols) { var n_row = root.AddContainer(BL.Direction.LeftToRight); n_row.ChildSpacing = CellHorizontalSeparation; // -- add indent n_row.AddBox(Indent, 0.25); foreach (int col in Enumerable.Range(0, cols)) { var n_cell = n_row.AddContainer(BL.Direction.LeftToRight); // --- n_cell.Direction = BL.Direction.LeftToRight; n_cell.ChildSpacing = CellVerticalSeparation; var items_for_cells = this.Items.Where(i => i.XCategory == xcats[col] && i.YCategory == ycats[row]); foreach (var cell_item in items_for_cells) { draw_cell(cell_item, n_cell); } } var n_row_label = root.AddBox(0.25, CategoryHeight); var info = new RenderItem(); info.CategoryCell = null; info.ShapeText = ycats[row]; info.Cells = ycatformat; info.Underline = true; n_row_label.Data = info; }