public override void ToXml(StorageWriter storage, FileParsingContext parsingContext) { storage.Properties.SetInt32("width", Size.Width); storage.Properties.SetInt32("height", Size.Height); storage.Properties.SetInt32("points", Points); storage.Properties.SetString("name", Name); var writer = storage.GetXmlWriter(); ChartStyle.ToXml(writer); PropertiesSource.ToXml(writer); Grid.ToXml(writer); XAxis.ToXml(writer); YAxis.ToXml(writer); Y2Axis.ToXml(writer); Title.ToXml(writer); XYLabel.ToXml(writer); Legend.ToXml(writer); SeriesToXml(writer); }