public Toggles(Toggles t) { if (t._toggleList != null) { _toggleList = new List <Toggle>(); foreach (Toggle tog in t._toggleList) { _toggleList.Add(tog); } } }
internal Element(Container parent, Rdl.Engine.ReportElement reportElement, BoxStyle style) { _parentElement = parent; if (_parentElement != null) { _genericRender = _parentElement._genericRender; } _reportElement = reportElement; if (style != null && reportElement != null) { _styleIndex = Render.AddStyle(style); } _toggles = new Toggles(this); }
public string ToString(int level) { string ret = string.Empty.PadRight(level << 1) + this.GetType().FullName; if (this is FlowContainer) { if (((FlowContainer)this).FlowDirection == FlowContainer.FlowDirectionEnum.LeftToRight) { ret += " LRT"; } else { ret += " TTB"; } } ret += " " + _name; if (this.ReportElement is Engine.ReportItem) { ret += " " + ((Engine.ReportItem) this.ReportElement).Name; } if (this is TextElement) { ret += " " + ((TextElement)this).Text; } if (this is Table.Cell) { Table.Cell c = this as Table.Cell; ret += string.Format(" ({0},{1},({2},{3}))", c.Row, c.Column, c.RowSpan, c.ColSpan); } ret += " (" + Left.ToString() + ", " + Top.ToString() + ", " + Width.ToString() + ", " + Height.ToString() + ")"; if (Style != null && Style.BorderWidth != null) { ret += " border( (" + Style.BorderWidth.Left.points.ToString() + ", " + Style.BorderWidth.Top.points.ToString() + ", " + Style.BorderWidth.Right.points.ToString() + ", " + Style.BorderWidth.Bottom.points.ToString() + ") (" + Style.BorderStyle.Left.ToString() + ", " + Style.BorderStyle.Top.ToString() + ", " + Style.BorderStyle.Right.ToString() + ", " + Style.BorderStyle.Bottom.ToString() + ") )"; } ret += Toggles.ToString(); ret += "\r\n"; if (this is Container) { Container c = this as Container; foreach (Element e in c.Children) { ret += e.ToString(level + 1); } } return(ret); }
public Element(Element e) { _name = e._name; _canGrowHorizontally = e._canGrowHorizontally; _canGrowVertically = e._canGrowVertically; _reportElement = e._reportElement; _styleIndex = e._styleIndex; _imageIndex = e._imageIndex; _top = e._top; _left = e._left; _width = e._width; _height = e._height; _renderedTop = e._renderedTop; _renderedLeft = e._renderedLeft; _renderedWidth = e._renderedWidth; _renderedHeight = e._renderedHeight; _keepTogether = e._keepTogether; _pageBreakAfter = e._pageBreakAfter; _pageBreakBefore = e._pageBreakBefore; _fixed = e._fixed; _toggles = new Toggles(e._toggles); _genericRender = e._genericRender; }