I'm trying to add nodes to the diagram dynamically and am having a few issues. First, when I add nodes like this:
for(int i = 0; i< e.Result.Count; i++)
{
ShapeNode node = new ShapeNode(script);
node.Content = e.Result[i].Name;
node.Shape = Shapes.Actor;
node.Width = 100;
node.Height = 100;
node.Visible = true;
node.Name = e.Result[i].Name;
node.Tag = e.Result[i].Name;
script.Items.Add(node);
}
I get the nodes added, but the images on the nodes are not drawn.
Also, in your documentation under Creating and Deleting Items you have this sentence:
There are several shortcut methods provided for creating instances of the predefined node and link types. The methods are members of the diagram's Factory object
But I can't find the "Factory" or the shortcut methods mentioned anywhere in the object tree or the documentation. Where are they?
Help please
.