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

Cusomt Properties

Thread ID:





59968 Apr 25,2007 02:12 PM UTC Apr 26,2007 07:20 AM UTC WinForms 1
Tags: Diagram
Robin Russell
Asked On April 25, 2007 02:12 PM UTC

Can custom properties be associated with custom symbols?
If so can the symbols on a diagram be searched to isolate this specific symbol?

Ramya R [Syncfusion]
Replied On April 26, 2007 07:20 AM UTC

Hi Robin,

Yes. It is possible to add custom properties to the Custom Symbols. Kindly take a look at the CustomSymbol sample(Syncfusion\Essential Studio\\Windows\Diagram.Windows\Samples\Symbol Design\CustomSymbol) which ships with our EssentialDiagram ProductPackage.

This sample demonstrates how to customize the behavior of a symbol designed with the Essential Diagram SymbolDesigner by subclassing it at the application level and also how to add properties and display only specific properties for the CustomSymbol.

If your intention is to know whether a symbol is CustomSymbol or not when it is selected, or when the mouse enters the node etc.. then it can done as shown in the code snippet below. The below given code snippet is used to find whether the symbol is a CustomSymbol or not when it is selected by a mouse click over the node.

private void diagram1_NodeClick(object sender, Syncfusion.Windows.Forms.Diagram.NodeMouseEventArgs evtArgs)
if(evtArgs.Node is MySymbol)
MessageBox.Show("This is a Custom Symbol");

Let me know whether this helps you.

Thanks & Regards,


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