public void CopyFrom(XYPlotLayerPositionAndSize from) { this._layerXPosition = from._layerXPosition; this._layerXPositionType = from._layerXPositionType; this._layerYPosition = from._layerYPosition; this._layerYPositionType = from._layerYPositionType; this._layerWidth = from._layerWidth; this._layerWidthType = from._layerWidthType; this._layerHeight = from._layerHeight; this._layerHeightType = from._layerHeightType; this._layerAngle = from._layerAngle; this._layerScale = from._layerScale; }
public virtual void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info) { XYPlotLayerPositionAndSize s = (XYPlotLayerPositionAndSize)obj; info.AddValue("Width", s._layerWidth); info.AddEnum("WidthType", s._layerWidthType); info.AddValue("Height", s._layerHeight); info.AddEnum("HeightType", s._layerHeightType); info.AddValue("Angle", s._layerAngle); info.AddValue("Scale", s._layerScale); info.AddValue("XPos", s._layerXPosition); info.AddEnum("XPosType", s._layerXPositionType); info.AddValue("YPos", s._layerYPosition); info.AddEnum("YPosType", s._layerYPositionType); }
protected virtual XYPlotLayerPositionAndSize SDeserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent) { XYPlotLayerPositionAndSize s = null != o ? (XYPlotLayerPositionAndSize)o : new XYPlotLayerPositionAndSize(); s._layerWidth = info.GetDouble("Width"); s._layerWidthType = (XYPlotLayerSizeType)info.GetEnum("WidthType", typeof(XYPlotLayerSizeType)); s._layerHeight = info.GetDouble("Height"); s._layerHeightType = (XYPlotLayerSizeType)info.GetEnum("HeightType", typeof(XYPlotLayerSizeType)); s._layerAngle = info.GetDouble("Angle"); s._layerScale = info.GetDouble("Scale"); s._layerXPosition = info.GetDouble("XPos"); s._layerXPositionType = (XYPlotLayerPositionType)info.GetEnum("XPosType", typeof(XYPlotLayerPositionType)); s._layerYPosition = info.GetDouble("YPos"); s._layerYPositionType = (XYPlotLayerPositionType)info.GetEnum("YPosType", typeof(XYPlotLayerPositionType)); return(s); }
public XYPlotLayerPositionAndSize(XYPlotLayerPositionAndSize from) { CopyFrom(from); }
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent) { XYPlotLayerPositionAndSize s = SDeserialize(o, info, parent); return(s); }