public object Clone() { AxisStyleCollection result = new AxisStyleCollection(); result.CopyFrom(this); return(result); }
void CopyFrom(AxisStyleCollection from) { this._axisStyles.Clear(); for (int i = 0; i < from._axisStyles.Count; ++i) { this.Add((AxisStyle)from._axisStyles[i].Clone()); } this._parent = from._parent; this._cachedCoordinateSystem = from._cachedCoordinateSystem; }
public virtual void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info) { AxisStyleCollection s = (AxisStyleCollection)obj; info.CreateArray("AxisStyles", s._axisStyles.Count); for (int i = 0; i < s._axisStyles.Count; ++i) { info.AddValue("e", s._axisStyles[i]); } info.CommitArray(); }
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) { s._axisStyles.Add((AxisStyle)info.GetValue("e", s)); } 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); }