/// <summary> /// Copy constructor. Clones (!) all the graph items from the other collection /// </summary> /// <param name="from">The collection to clone the items from.</param> public GraphicCollection(GraphicCollection from) { for (int i = 0; i < from.Count; i++) { this.Add((GraphicBase)from[i].Clone()); } }
public void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info) { GraphicCollection s = (GraphicCollection)obj; info.CreateArray("GraphObjects", s.myList.Count); for (int i = 0; i < s.myList.Count; i++) { info.AddValue("GraphicsObject", s.myList[i]); } info.CommitArray(); }
public void AddRange(GraphicCollection goc) { int len = goc.Count; for (int i = 0; i < len; i++) { this.Add(goc[i], false); } OnChanged(); }
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent) { GraphicCollection s = null != o ? (GraphicCollection)o : new GraphicCollection(); int count = info.OpenArray(); for (int i = 0; i < count; i++) { GraphicBase go = (GraphicBase)info.GetValue(s); s.Add(go); } info.CloseArray(count); return(s); }
public GraphObjectEnumerator(GraphicCollection mappings) : base() { this.temp = (IEnumerable)mappings; this.baseEnumerator = temp.GetEnumerator(); }
public GraphObjectEnumerator(GraphicCollection mappings) : base() { this.temp = (IEnumerable)mappings; this.baseEnumerator = temp.GetEnumerator(); }
public void AddRange(GraphicCollection goc) { int len = goc.Count; for(int i=0;i<len;i++) this.Add(goc[i],false); OnChanged(); }
/// <summary> /// Copy constructor. Clones (!) all the graph items from the other collection /// </summary> /// <param name="from">The collection to clone the items from.</param> public GraphicCollection(GraphicCollection from) { for(int i=0;i<from.Count;i++) this.Add((GraphicBase)from[i].Clone()); }