Пример #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);
                }
            }
        }
Пример #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);
        }
Пример #3
0
 public FlowContainer(FlowContainer b, bool copyChildren)
     : base(b, copyChildren)
 {
     FlowDirection = b.FlowDirection;
 }
Пример #4
0
 public FlowContainer(FlowContainer b) : this(b, false)
 {
 }