4,820
社区成员
发帖
与我相关
我的任务
分享 Draw2DChart.Serializer.Format = System.Windows.Forms.DataVisualization.Charting.SerializationFormat.Xml;
Draw2DChart.Serializer.Content = SerializationContents.All;
System.Xml.XmlTextWriter myWriter = new System.Xml.XmlTextWriter(saveTemplateDialog .FileName, System.Text.Encoding.UTF8);
Draw2DChart.Serializer.Save(myWriter); Draw2DChart.Serializer.Content = SerializationContents.All;
Draw2DChart.Serializer.IsTemplateMode = true;
Draw2DChart.Serializer.IsResetWhenLoading = false;
System.Xml.XmlTextReader myXMLReader = new System.Xml.XmlTextReader(slnPath);
Draw2DChart.Serializer.Load(myXMLReader);