The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
RRRamya R Syncfusion Team 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\4.4.0.51\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"); } }