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.
Unfortunately, activation email could not send to your email. Please try again.

getting the Diagram''s properties

Thread ID:

Created:

Updated:

Platform:

Replies:

78521 Dec 16,2008 06:53 PM Dec 29,2008 05:31 PM Windows Forms 2
loading
Tags: Diagram
Ron Alan Sawyer
Asked On December 16, 2008 06:53 PM

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.


Ajeet M [Syncfusion]
Replied On December 18, 2008 11:07 AM

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

Ron Alan Sawyer
Replied On December 29, 2008 05:31 PM

Thank you very much.


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;