Exemplo n.º 1
0
        /// <summary>
        /// Allows the visitor object to visit the document object and its child objects.
        /// </summary>
        void IVisitable.AcceptVisitor(DocumentObjectVisitor visitor, bool visitChildren)
        {
            visitor.VisitChart(this);
            if (visitChildren)
            {
                if (_bottomArea != null)
                    ((IVisitable)_bottomArea).AcceptVisitor(visitor, true);

                if (_footerArea != null)
                    ((IVisitable)_footerArea).AcceptVisitor(visitor, true);

                if (_headerArea != null)
                    ((IVisitable)_headerArea).AcceptVisitor(visitor, true);

                if (_leftArea != null)
                    ((IVisitable)_leftArea).AcceptVisitor(visitor, true);

                if (_rightArea != null)
                    ((IVisitable)_rightArea).AcceptVisitor(visitor, true);

                if (_topArea != null)
                    ((IVisitable)_topArea).AcceptVisitor(visitor, true);
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// Allows the visitor object to visit the document object and it's child objects.
        /// </summary>
        void IVisitable.AcceptVisitor(DocumentObjectVisitor visitor, bool visitChildren)
        {
            visitor.VisitChart(this);
              if (visitChildren)
              {
            if (this.bottomArea != null)
              ((IVisitable)this.bottomArea).AcceptVisitor(visitor, visitChildren);

            if (this.footerArea != null)
              ((IVisitable)this.footerArea).AcceptVisitor(visitor, visitChildren);

            if (this.headerArea != null)
              ((IVisitable)this.headerArea).AcceptVisitor(visitor, visitChildren);

            if (this.leftArea != null)
              ((IVisitable)this.leftArea).AcceptVisitor(visitor, visitChildren);

            if (this.rightArea != null)
              ((IVisitable)this.rightArea).AcceptVisitor(visitor, visitChildren);

            if (this.topArea != null)
              ((IVisitable)this.topArea).AcceptVisitor(visitor, visitChildren);
              }
        }