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); }
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); }
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 { }
public SimpleTextGraphic(SimpleTextGraphic from) : base(from) // all is done here, since CopyFrom is overridden { }
public SimpleTextGraphic(SimpleTextGraphic from) : base(from) // all is done here, since CopyFrom is virtual! { }
public SimpleTextGraphic(SimpleTextGraphic from) : base(from) // all is done here, since CopyFrom is virtual! { }