Ejemplo n.º 1
0
        public Container(Container b, bool copyChildren)
            : this(b)
        {
            if (copyChildren)
            {
                foreach (Element e in b._childElements)
                {
                    Element newElement = null;
                    if (e is FixedContainer)
                    {
                        newElement = new FixedContainer((FixedContainer)e, true);
                    }
                    if (e is FlowContainer)
                    {
                        newElement = new FlowContainer((FlowContainer)e, true);
                    }
                    if (e is TextElement)
                    {
                        newElement = new TextElement((TextElement)e);
                    }
                    if (e is ImageElement)
                    {
                        newElement = new ImageElement((ImageElement)e);
                    }
                    if (e is ChartElement)
                    {
                        newElement = new ChartElement((ChartElement)e);
                    }

                    newElement.Parent = this;
                    _childElements.Add(newElement);
                }
            }
        }
Ejemplo n.º 2
0
        internal FlowContainer AddFlowContainer(Rdl.Engine.ReportElement reportElement, Rdl.Engine.Style style, Rdl.Runtime.Context context, Rdl.Render.FlowContainer.FlowDirectionEnum direction)
        {
            FlowContainer child = new FlowContainer(this, reportElement, new BoxStyle(style, context));

            child.FlowDirection = direction;
            if (style != null && style.BackgroundImage != null)
            {
                _imageIndex = Render.AddImage(style.BackgroundImage, context);
            }
            _childElements.Add(child);
            return(child);
        }
Ejemplo n.º 3
0
 public FlowContainer(FlowContainer b, bool copyChildren)
     : base(b, copyChildren)
 {
     FlowDirection = b.FlowDirection;
 }
Ejemplo n.º 4
0
 public FlowContainer(FlowContainer b) : this(b, false)
 {
 }