Esempio n. 1
0
            public void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
            {
                RectangleWithShadow s = (RectangleWithShadow)obj;

                info.AddValue("Brush", s._brush);
                info.AddValue("ShadowLength", s._shadowLength);
            }
Esempio n. 2
0
            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);
            }
Esempio n. 3
0
        public void CopyFrom(RectangleWithShadow from)
        {
            if (object.ReferenceEquals(this, from))
            {
                return;
            }

            Brush = from._brush;
        }
Esempio n. 4
0
            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);
            }
Esempio n. 5
0
 public RectangleWithShadow(RectangleWithShadow from)
 {
     CopyFrom(from);
 }
Esempio n. 6
0
 public void CopyFrom(RectangleWithShadow from)
 {
     this.Brush = from._brush;
 }
 public void CopyFrom(RectangleWithShadow from)
 {
   this.Brush = from._brush;
 }
 public RectangleWithShadow(RectangleWithShadow from)
 {
   CopyFrom(from);
 }
Esempio n. 9
0
		public void CopyFrom(RectangleWithShadow from)
		{
			if (object.ReferenceEquals(this, from))
				return;

			this.Brush = from._brush;
		}