Is they a method for serialize a LableStyle similiar to how we serialize a font. See code snipit:
I take the return value and write to xml for saving user set properties. I want to perform the same thing on Annotation.TextStyle that inherits from a LableStyle.
Using
formatter.Serialize(stream, font)
Hello ,
If the class is not marked as serializeable , you could use XmlSerializer which will serialize public properties via reflector, but if the calls or some of its fields doesn’t have defined constructors, you wouldn’t be able to use XmlSerializer to desterilize the object, but you will be able to read the data from the serialized XML and to set those properties manually. More information about XmlSerializer you could find on the following link:
http://msdn.microsoft.com/en-us/library/system.xml.serialization.xmlserializer.aspx
Please let me know if you have any further questions.
Hello,
I am just checking about the progress of this issue. Let me know If you need my further assistance on this matter?
Thank you for using Infragistics Components.
Thanks for your reply.
I am already handling the various property values with custom classes that i then serialize. I was hoping that more of the objects used by winChart would be serializable which would save me codeing time.
I have my answer.
Thanks all.
Please let me know if there is anything else that I could for you regarding this matter.