I would have a MDI interface. Each child form is a windows form plus a diagram.
1, when dragging a symbol in a diagram, since there are many diagrams, how can I set the OWNER of this symbol.
2, Since many child forms, and diagrams, how I can search a specific diagram and get all symbols from it?
ADAdministrator Syncfusion Team October 25, 2004 01:57 PM
1. Can you post some more information on what you are seeking to do.
2. The Diagram''s Model has a Nodes Collection that you can iterate through to do what you are seeking. Here is a code snippet that demonstrates how you can get the names of all instances of a custom symbol (MySymbol) in a Diagram (diagram1):
IEnumerator enumnodes = this.diagram1.Model.Nodes.GetEnumerator();
//Iterate through the enumerator
INode node = enumnodes.Current as INode;
if (node.GetType() == typeof(MySymbol))