示例#1
0
            public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
            {
                XYLineScatterPlotStyle s = null != o ? (XYLineScatterPlotStyle)o : new XYLineScatterPlotStyle();

                // do not use settings lie s.XYPlotLineStyle= here, since the XYPlotLineStyle is cloned, but maybe not fully deserialized here!!!
                s.m_LineStyle = (LinePlotStyle)info.GetValue("XYPlotLineStyle", typeof(LinePlotStyle));
                // do not use settings lie s.XYPlotScatterStyle= here, since the XYPlotScatterStyle is cloned, but maybe not fully deserialized here!!!
                s.m_ScatterStyle  = (ScatterPlotStyle)info.GetValue("XYPlotScatterStyle", typeof(ScatterPlotStyle));
                s.m_LineSymbolGap = info.GetBoolean("LineSymbolGap");

                return(s);
            }
示例#2
0
            public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
            {
                XYLineScatterPlotStyle s = null != o ? (XYLineScatterPlotStyle)o : new XYLineScatterPlotStyle();

                // do not use settings lie s.XYPlotLineStyle= here, since the XYPlotLineStyle is cloned, but maybe not fully deserialized here!!!
                s.m_LineStyle = (LinePlotStyle)info.GetValue("XYPlotLineStyle", typeof(LinePlotStyle));
                // do not use settings lie s.XYPlotScatterStyle= here, since the XYPlotScatterStyle is cloned, but maybe not fully deserialized here!!!
                s.m_ScatterStyle  = (ScatterPlotStyle)info.GetValue("XYPlotScatterStyle", typeof(ScatterPlotStyle));
                s.m_LineSymbolGap = info.GetBoolean("LineSymbolGap");

                int nCount = info.OpenArray(); // OptionalStyles

                if (nCount == 1)
                {
                    s.m_LabelStyle = (LabelPlotStyle)info.GetValue("LabelStyle", typeof(LabelPlotStyle)); // new in this version
                }
                info.CloseArray(nCount);                                                                  // OptionalStyles

                return(s);
            }