public void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info) { RectangleWithShadow s = (RectangleWithShadow)obj; info.AddValue("Brush", s._brush); info.AddValue("ShadowLength", s._shadowLength); }
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent) { RectangleWithShadow s = null != o ? (RectangleWithShadow)o : new RectangleWithShadow(); s.Brush = (BrushX)info.GetValue("Brush", s); s._shadowLength = info.GetDouble(); return(s); }
public void CopyFrom(RectangleWithShadow from) { if (object.ReferenceEquals(this, from)) { return; } Brush = from._brush; }
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent) { RectangleWithShadow s = null != o ? (RectangleWithShadow)o : new RectangleWithShadow(); s.Brush = new BrushX((NamedColor)info.GetValue("Color", s)) { ParentObject = s }; s._shadowLength = info.GetDouble(); return(s); }
public RectangleWithShadow(RectangleWithShadow from) { CopyFrom(from); }
public void CopyFrom(RectangleWithShadow from) { this.Brush = from._brush; }
public void CopyFrom(RectangleWithShadow from) { if (object.ReferenceEquals(this, from)) return; this.Brush = from._brush; }