Hi,
it's a question about groups, as there is not Clear() method for them.
I managed to clear my diagram this way :
Diagram.Nodes.Clear();
Diagram.Links.Clear();
foreach (var group in Diagram.Groups)
{
Diagram.Ungroup(group);
}
I saw that you are not adding group in the List items of the abstract class BaseLayer like for nodes and links. Is there a reason for that and not creating a Clear() method them BTW?
Hi, it's a question about groups, as there is not Clear() method for them.
I managed to clear my diagram this way : Diagram.Nodes.Clear(); Diagram.Links.Clear(); foreach (var group in Diagram.Groups) { Diagram.Ungroup(group); } I saw that you are not adding group in the List items of the abstract class BaseLayer like for nodes and links. Is there a reason for that and not creating a Clear() method them BTW?