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

Custom Symbols with parameters

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.

1 Reply

AD Administrator Syncfusion Team October 21, 2004 01:04 PM

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

Loader.
Live Chat Icon For mobile
Up arrow icon