Knowledgebase
Adding new properties to serialize
Posted by Admin - on 06 February 2019 01:06 PM
|
|
SciChart supports XML serialization via implementation of IXmlSerializable interface. This means that each serializable type has 2 implemented methods of this interface: public virtual void WriteXml (XmlWriter writer) { // Here we serialize properties we want to XmlWriter } public void ReadXml (XmlReader reader) { // Here we reading and restoring state of properties from XmlReader } IXmlSerializable has also definition of GetSchema() method but this method should not be used. Please take a look at this documentation article to find out more about serialization in SciChart and see an example. Also it is worth to mention that the Printing / Export in SciChart relies on the chart serialization mechanism. | |
|