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.
ADAdministrator Syncfusion Team October 21, 2004 01:04 PM
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.