示例#1
0
        public object Clone()
        {
            var result = new AxisStyleCollection();

            result.CopyFrom(this);
            return(result);
        }
示例#2
0
            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);
            }
示例#3
0
        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;
        }
示例#4
0
            public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
            {
                AxisStyleCollection s = SDeserialize(o, info, parent);

                return(s);
            }