コード例 #1
0
            public void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
            {
                NumericLabelFormattingBase s = (NumericLabelFormattingBase)obj;

                info.AddBaseValueEmbedded(s, typeof(LabelFormattingBase));
                info.AddValue("DecimalPlaces", s._decimalPlaces);
            }
コード例 #2
0
            public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
            {
                NumericLabelFormattingBase s = (NumericLabelFormattingBase)o;

                info.GetBaseValueEmbedded(s, typeof(LabelFormattingBase), parent);
                s._decimalPlaces = info.GetInt32("DecimalPlaces");
                return(s);
            }
コード例 #3
0
 protected NumericLabelFormattingBase(NumericLabelFormattingBase from)
     : base(from) // everything is done here, since CopyFrom is virtual
 {
 }
コード例 #4
0
 protected void CopyFrom(NumericLabelFormattingBase from)
 {
     this._decimalPlaces = from._decimalPlaces;
 }
コード例 #5
0
		protected NumericLabelFormattingBase(NumericLabelFormattingBase from)
			: base(from) // everything is done here, since CopyFrom is virtual
		{
		}
コード例 #6
0
 protected void CopyFrom(NumericLabelFormattingBase from)
 {
   this._decimalPlaces = from._decimalPlaces;
 }