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

Custom Symbols with parameters

Thread ID:

Created:

Updated:

Platform:

Replies:

20578 Oct 21,2004 08:03 AM UTC Oct 21,2004 05:04 PM UTC WinForms 1
loading
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

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.

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

;