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); }
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; }