Exemplo n.º 1
0
        public override bool CopyFrom(object obj)
        {
            bool isCopied = base.CopyFrom(obj);

            if (isCopied && !object.ReferenceEquals(this, obj))
            {
                var from = obj as FloatingScale;
                if (null != from)
                {
                    _cachedPath = null;

                    _scaleSpanValue   = from._scaleSpanValue;
                    _scaleSpanType    = from._scaleSpanType;
                    _scaleNumber      = from._scaleNumber;
                    _scaleSegmentType = from._scaleSegmentType;

                    CopyHelper.Copy(ref _tickSpacing, from._tickSpacing);
                    CopyHelper.Copy(ref _axisStyle, from._axisStyle);

                    _backgroundPadding = from._backgroundPadding;
                    CopyHelper.Copy(ref _background, from._background);
                }
            }
            return(isCopied);
        }
Exemplo n.º 2
0
		public override bool CopyFrom(object obj)
		{
			bool isCopied = base.CopyFrom(obj);
			if (isCopied && !object.ReferenceEquals(this, obj))
			{
				var from = obj as FloatingScale;
				if (null != from)
				{
					_cachedPath = null;

					_scaleSpanValue = from._scaleSpanValue;
					_scaleSpanType = from._scaleSpanType;
					_scaleNumber = from._scaleNumber;
					_scaleSegmentType = from._scaleSegmentType;

					CopyHelper.Copy(ref _tickSpacing, from._tickSpacing);
					CopyHelper.Copy(ref _axisStyle, from._axisStyle);

					_backgroundPadding = from._backgroundPadding;
					CopyHelper.Copy(ref _background, from._background);
				}
			}
			return isCopied;
		}