public override void Load(XElement root) { base.Load(root); XNamespace ns = root.GetDefaultNamespace(); _style = _generator.ReportDesign.LoadStyle <TableRowStyle>(root.Element(ns + "Style")); if (_style == null) { _style = _generator.ReportDesign.DefaultTableRowStyle; } }
/// <summary> /// Constructor used for rows in photo tables. /// </summary> public TableRowLayout(Generator generator, TableRowStyle style, int lineNumber, int linePosition) : base(generator, lineNumber, linePosition) { // A row layout created as part of a photo table doesn't have its // own conditions because it's not defined in the design file. Any // conditions governing the inclusion of a photo are evaluated in // the photo table layout when it loads its content. So static // conditions are implicitly satisfied here. _staticConditionsSatisfied = true; _style = style; }
private void RenderTableRowLayout(TableRowLayout layout, Page page) { TableRowStyle style = (TableRowStyle)layout.Style; if (style.BackColor != null) { page.AddPath(layout.Bounds.Points, 0, null, Convert.Color(style.BackColor)); } foreach (TableCellLayout cell in layout.Cells) { RenderTableCellLayout(cell, page); } }
/// <summary> /// Copy constructor used during layout expansion and page break handling. /// </summary> public TableRowLayout(TableRowLayout src) : base(src) { _style = src._style; }