Ejemplo n.º 1
0
        /// <summary>
        /// The Copy Constructor
        /// </summary>
        /// <param name="rhs">The <see c_ref="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)
            {
                Tag = ((ICloneable)rhs.Tag).Clone();
            }
            else
            {
                Tag = rhs.Tag;
            }

            _location = rhs.Location.Clone();
            _link     = rhs._link.Clone();
        }
Ejemplo n.º 2
0
		/// <summary>
		/// The Copy Constructor
		/// </summary>
		/// <param name="rhs">The <see c_ref="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 )
				Tag = ((ICloneable) rhs.Tag).Clone();
			else
				Tag = rhs.Tag;

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