public object Clone() { var result = new AxisStyleCollection(); result.CopyFrom(this); return(result); }
protected virtual AxisStyleCollection SDeserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent) { AxisStyleCollection s = null != o ? (AxisStyleCollection)o : new AxisStyleCollection(); int count = info.OpenArray(); for (int i = 0; i < count; ++i) { var newStyle = (AxisStyle)info.GetValue("e", s); newStyle.ParentObject = s; s._axisStyles.Add(newStyle); } info.CloseArray(count); return(s); }
private void CopyFrom(AxisStyleCollection from) { if (object.ReferenceEquals(this, from)) { return; } _axisStyles.Clear(); for (int i = 0; i < from._axisStyles.Count; ++i) { Add((AxisStyle)from._axisStyles[i].Clone()); } //this._parent = from._parent; _cachedCoordinateSystem = from._cachedCoordinateSystem; }
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent) { AxisStyleCollection s = SDeserialize(o, info, parent); return(s); }