We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

getting the Diagram''s properties

I have figured out how to get the properties of each node, but how do I get the properties of the diagram (or diagram.model)?

For instance, if I click on the background of diagram, I see in the property editor the following:
Appearance
BackgroundStyle
LineStyle
RenderingStyle
ShadowStyle
etc.

I need to store these in a database and restore them when I open a diagram.


2 Replies

AM Ajeet M Syncfusion Team December 18, 2008 04:07 PM UTC

Hi RAS,

The sample file is attached here. The file demonstrates how the values of Model's Background style's parameters are captured and stored in an XML file "C:\myModel.xml".

This also shows how it effectively constructs the values back again.

Let me know if you shall need any further clarifications here.

Happy coding!

-Ajeet




Diagram_WF_XMLSerialization_ee592a36.zip


RA Ron Alan Sawyer December 29, 2008 10:31 PM UTC

Thank you very much.


Loader.
Live Chat Icon For mobile
Up arrow icon