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

Custom Symbols with parameters

Thread ID:





20578 Oct 21,2004 08:03 AM UTC Oct 21,2004 05:04 PM UTC WinForms 1
Tags: Diagram
Jose Santos
Asked On October 21, 2004 08:03 AM UTC

Hi, Can I pass parameters to a custom symbol ? If so, when I insert the symbol how do I pass the parameters ? It seems from the previous post (Changing symbol names) that the properties should be changed after the symbol is inserted but I wouldn''t like to do that.

Administrator [Syncfusion]
Replied On October 21, 2004 05:04 PM UTC

Hi Jose Yes, you should be able to do what you are seeking, but it is much easier to add custom properties to symbols by calling SetPropertyValue(). You would have to use a custom InsertSymbolTool and also take care Serialization when you want to add a Symbol with a custom parameterized constructor. The CustomSymbol sample demonstrates how a new property (Clickcount) is added to a derived Symbol (MySymbol). It also demonstrates how this property can be displayed in the Property Editor and also how it can be serialized. Regards Arun


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon