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. 

(2 vote(s))
Helpful
Not helpful

CONTACT US

Not sure where to start? Contact us, we are happy to help!


CONTACT US

SciChart Ltd, 16 Beaufort Court, Admirals Way, Docklands, London, E14 9XL. Email: Legal Company Number: 07430048, VAT Number: 101957725