Example #1
0
        /// <summary>
        /// The Copy Constructor
        /// </summary>
        /// <param name="rhs">The <see cref="GraphObj"/> object from which to copy</param>
        public GraphObj(GraphObj rhs)
        {
            // Copy value types
            _isVisible            = rhs.IsVisible;
            _isClippedToChartRect = rhs._isClippedToChartRect;
            _zOrder = rhs.ZOrder;

            // copy reference types by cloning
            if (rhs._tag is ICloneable)
            {
                this._tag = ((ICloneable)rhs._tag).Clone();
            }
            else
            {
                this._tag = rhs._tag;
            }

            _location = rhs.Location.Clone();
            _link     = rhs._link.Clone();
        }
Example #2
0
        /// <summary>
        /// The Copy Constructor
        /// </summary>
        /// <param name="rhs">The <see cref="GraphObj"/> object from which to copy</param>
        public GraphObj( GraphObj rhs )
        {
            // Copy value types
            _isVisible = rhs.IsVisible;
            _isClippedToChartRect = rhs._isClippedToChartRect;
            _zOrder = rhs.ZOrder;

            // copy reference types by cloning
            if ( rhs._tag is ICloneable )
                this._tag = ((ICloneable) rhs._tag).Clone();
            else
                this._tag = rhs._tag;

            _location = rhs.Location.Clone();
            _link = rhs._link.Clone();
        }