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
close icon

beginner needs help with SymbolModel and creating symbol instances on the diagram

Hi, I''m a beginner to SyncFusion - Diagram. During runtime, I''m trying to add SymbolModels to my SymbolPalette. I think I''ve done that successfully with the following code snippet: Syncfusion.Windows.Forms.Diagram.SymbolModel catSymModel = this.paletteGroupView1.Palette.AddSymbol("Cat"); When I run this code so far, I see a new icon for this "Cat" Symbol Model appear in my palette. So now when I drag it onto the diagram, I get an "Overflow error" and sometimes it crashes. That is to be expected. But the goal is I want just a simple rectangle to appear on the diagram. I have no idea how to proceed next. Please help. Thanks for your time.

1 Reply

TL Truman Lackey February 7, 2005 09:51 PM UTC

The basic aproach that I think of is to use the symbol designer that comes with the syncfusion install. Then you can load the pallete that you design into the palette control. It is also possible to load symbols into the palette control at runtime in code. The first method is described here http://www.syncfusion.com/Support/article.aspx?id=10490 This describes how to create a custom symbol and use it in a diagram. http://www.syncfusion.com/Support/article.aspx?id=10493

Loader.
Live Chat Icon For mobile
Up arrow icon