Example #1
0
            public void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
            {
                SimpleTextGraphic s = (SimpleTextGraphic)obj;

                info.AddBaseValueEmbedded(s, typeof(SimpleTextGraphic).BaseType);

                info.AddValue("Text", s._text);
                info.AddValue("Font", s._font);
                info.AddValue("Color", s._color);
            }
Example #2
0
            public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
            {
                SimpleTextGraphic s = null != o ? (SimpleTextGraphic)o : new SimpleTextGraphic();

                info.GetBaseValueEmbedded(s, typeof(SimpleTextGraphic).BaseType, parent);

                s._text  = info.GetString("Text");
                s._font  = (Font)info.GetValue("Font", typeof(Font));
                s._color = (Color)info.GetValue("Color", typeof(Color));
                return(s);
            }
Example #3
0
        protected override void CopyFrom(GraphicBase bfrom)
        {
            SimpleTextGraphic from = bfrom as SimpleTextGraphic;

            if (from != null)
            {
                this._font  = null == from._font ? null : (Font)from._font.Clone();
                this._text  = from._text;
                this._color = from._color;
            }
            base.CopyFrom(bfrom);
        }
 public SimpleTextGraphic(SimpleTextGraphic from)
   :
   base(from) // all is done here, since CopyFrom is overridden
 {
  
 }
Example #5
0
 public SimpleTextGraphic(SimpleTextGraphic from)
     :
     base(from) // all is done here, since CopyFrom is overridden
 {
 }
Example #6
0
		public SimpleTextGraphic(SimpleTextGraphic from)
			:
			base(from) // all is done here, since CopyFrom is virtual!
		{
		}
Example #7
0
 public SimpleTextGraphic(SimpleTextGraphic from)
     :
     base(from) // all is done here, since CopyFrom is virtual!
 {
 }