示例#1
0
 void CopyFrom(LayerBackground from)
 {
     this._background    = null == from._background ? null : (IBackgroundStyle)from._background.Clone();
     this._leftPadding   = from._leftPadding;
     this._rightPadding  = from._rightPadding;
     this._topPadding    = from._topPadding;
     this._bottomPadding = from._bottomPadding;
 }
 void CopyFrom(LayerBackground from)
 {
   this._background = null == from._background ? null : (IBackgroundStyle)from._background.Clone();
   this._leftPadding = from._leftPadding;
   this._rightPadding = from._rightPadding;
   this._topPadding = from._topPadding;
   this._bottomPadding = from._bottomPadding;
 }
示例#3
0
            public virtual void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
            {
                LayerBackground s = (LayerBackground)obj;

                info.AddValue("Background", s._background);
                info.AddValue("LeftPadding", s._leftPadding);
                info.AddValue("TopPadding", s._topPadding);
                info.AddValue("RightPadding", s._rightPadding);
                info.AddValue("BottomPadding", s._bottomPadding);
            }
示例#4
0
            protected virtual LayerBackground SDeserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
            {
                LayerBackground s = (o == null ? new LayerBackground() : (LayerBackground)o);

                s._background    = (Background.IBackgroundStyle)info.GetValue("Background", s);
                s._leftPadding   = info.GetDouble("LeftPadding");
                s._topPadding    = info.GetDouble("TopPadding");
                s._rightPadding  = info.GetDouble("RightPadding");
                s._bottomPadding = info.GetDouble("BottomPadding");


                return(s);
            }
示例#5
0
		private void CopyFrom(LayerBackground from)
		{
			if (object.ReferenceEquals(this, from))
				return;

			this._background = null == from._background ? null : (IBackgroundStyle)from._background.Clone();
			this._background.ParentObject = this;

			this._leftPadding = from._leftPadding;
			this._rightPadding = from._rightPadding;
			this._topPadding = from._topPadding;
			this._bottomPadding = from._bottomPadding;
		}
示例#6
0
        private void CopyFrom(LayerBackground from)
        {
            if (object.ReferenceEquals(this, from))
            {
                return;
            }

            _background = null == from._background ? null : (IBackgroundStyle)from._background.Clone();
            _background.ParentObject = this;

            _leftPadding   = from._leftPadding;
            _rightPadding  = from._rightPadding;
            _topPadding    = from._topPadding;
            _bottomPadding = from._bottomPadding;
        }
示例#7
0
            public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
            {
                LayerBackground s = SDeserialize(o, info, parent);

                return(s);
            }
示例#8
0
 public LayerBackground(LayerBackground from)
 {
     CopyFrom(from);
 }
示例#9
0
		public LayerBackground(LayerBackground from)
		{
			CopyFrom(from);
		}