static G2DPlotStyleCollection CreateScatterAndLineStyle()
        {
            G2DPlotStyleCollection coll = new G2DPlotStyleCollection(LineScatterPlotStyleKind.Empty);

            coll.Add(new ScatterPlotStyle());
            coll.Add(new LinePlotStyle());
            return(coll);
        }
            public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
            {
                int count = info.OpenArray();

                IG2DPlotStyle[] array = new IG2DPlotStyle[count];
                for (int i = 0; i < count; i++)
                {
                    array[i] = (IG2DPlotStyle)info.GetValue("e", this);
                }
                info.CloseArray(count);

                if (o == null)
                {
                    return(new G2DPlotStyleCollection(array));
                }
                else
                {
                    G2DPlotStyleCollection s = (G2DPlotStyleCollection)o;
                    for (int i = count - 1; i >= 0; i--)
                    {
                        s.Add(array[i]);
                    }
                    return(s);
                }
            }