Exemple #1
0
        /// <summary>
        /// Copy operation.
        /// </summary>
        /// <param name="from">The AxisStyle to copy from</param>
        public void CopyFrom(AxisLineStyle from)
        {
            if (_axisPen != null)
            {
                WireEventChain(false);
            }

            this._axisPen                 = null == from._axisPen ? null : (PenX)from._axisPen.Clone();
            this._axisPosition            = from._axisPosition;
            this._showFirstDownMajorTicks = from._showFirstDownMajorTicks;
            this._showFirstDownMinorTicks = from._showFirstDownMinorTicks;
            this._showFirstUpMajorTicks   = from._showFirstUpMajorTicks;
            this._showFirstUpMinorTicks   = from._showFirstUpMinorTicks;
            this._majorTickLength         = from._majorTickLength;
            this._majorTickPen            = null == from._majorTickPen ? null : (PenX)from._majorTickPen;
            this._minorTickLength         = from._minorTickLength;
            this._minorTickPen            = (null == from._minorTickPen) ? null : (PenX)from._minorTickPen;

            this._cachedAxisStyleInfo = from._cachedAxisStyleInfo;
            this._parent = from._parent;

            // Rewire the event chain
            WireEventChain(true);
        }
    /// <summary>
    /// Copy operation.
    /// </summary>
    /// <param name="from">The AxisStyle to copy from</param>
    public void CopyFrom(AxisLineStyle from)
    {
      if (_axisPen != null)
        WireEventChain(false);
     
      this._axisPen = null == from._axisPen ? null : (PenX)from._axisPen.Clone();
      this._axisPosition = from._axisPosition;
      this._showFirstDownMajorTicks = from._showFirstDownMajorTicks;
      this._showFirstDownMinorTicks = from._showFirstDownMinorTicks;
      this._showFirstUpMajorTicks = from._showFirstUpMajorTicks;
      this._showFirstUpMinorTicks = from._showFirstUpMinorTicks;
      this._majorTickLength  = from._majorTickLength;
      this._majorTickPen     = null==from._majorTickPen ? null : (PenX)from._majorTickPen;
      this._minorTickLength  = from._minorTickLength;
      this._minorTickPen     = (null==from._minorTickPen) ? null : (PenX)from._minorTickPen;

      this._cachedAxisStyleInfo = from._cachedAxisStyleInfo;
      this._parent = from._parent;

      // Rewire the event chain
      WireEventChain(true);
    }