Copy Code | |
---|---|
[C#]<CRLF><CRLF>// Save chart appearance properties that have non-default values, except for all BackColor properties<CRLF>Chart1.Serializer.Content = SerializationContent.Appearance;<CRLF>Chart1.Serializer.NonSerializableContent = *.BackColor";<CRLF>Chart1.Serializer.Save("AppearanceProps.xml");<CRLF>...<CRLF><CRLF>// Load the serialized appearance properties<CRLF>Chart1.Serializer.Content = SerializationContent.Appearance;<CRLF>Chart1.Serializer.NonSerializableContent = "*.BackColor";<CRLF>Chart1.Serializer.Load("AppearanceProps.xml");<CRLF><CRLF>[Visual Basic]<CRLF><CRLF>' Save chart appearance properties that have non-default values, except for all BackColor properties<CRLF>Chart1.Serializer.Content = SerializationContent.Appearance<CRLF>Chart1.Serializer.NonSerializableContent = *.BackColor"<CRLF>Chart1.Serializer.Save("AppearanceProps.xml")<CRLF>...<CRLF>' Load the serialized appearance properties<CRLF>Chart1.Serializer.Content = SerializationContent.Appearance<CRLF>Chart1.Serializer.NonSerializableContent = "*.BackColor"<CRLF>Chart1.Serializer.Load("AppearanceProps.xml")", Language="Visual Basic", InLine="True |