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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Adding custom properties using property bag

                              Adding custom properties in property bag

We can add custom properties to the node and connector by means of property bag. It can be achieved in two ways:

  1. Adding custom properties in code behind:

The custom property can be added by invoking the node’s PropertyBag.Add method.

The below code shows how to add custom properties.





  1. Adding the custom properties in runtime.


  1. Add the PropertyEditor in the diagram.
  2. Select the node to which custom property need to be added.
  3. Select the propertybag in propertyeditor and enter the Name,Type and Value as shown in the image below.





                Adding custom properties in Runtime.

Article ID: Published Date: Last Revised Date: Platform: Control:
5775 11/25/2015 11/25/2015 WinForms Diagram
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Warning Icon 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.Close Icon