How To Programmatically Add a Symbol From the Palette
29 Feb 2016 / 1 minute to read
The following code sample demonstrates how you can programmatically add a symbol from the symbol palette to a diagram.
if (paletteGroupView1.Palette.Nodes.Count > 0)
{
Node nc =(Node)paletteGroupView1.Palette.Nodes[0].Clone();
diagram1.Model.AppendChild(nc);
}
If paletteGroupView1.Palette.Nodes.Count > 0 Then
Dim nc As Node = DirectCast(paletteGroupView1.Palette.Nodes(0).Clone(), Node)
diagram1.Model.AppendChild(nc)
End If
Was this page helpful?
Yes
No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page