I’m building an application based on the DataSet demo, I’m using Document.Clear() to clear the GoView and its working fine until the amount of objects grows (over 1000) and I get an out of memory error on the Autolayout sub.
I have another question. If I where to call the ExpanAll() (the one that is in the PersonNode class) upon a diagram that is collapse it should expand all the collapsed branches right?
And if I wanted to Do the opposite I should create a CollapseAll() that might look like this?
Public Overridable Sub CollapseAll()
Collapse()
For Each node As IGoNode In Me.Destinations
Dim child As PersonNode = Nothing
If TypeOf node Is PersonNode Then child = CType(node, PersonNode)
If Not child Is Nothing Then
child.CollapseAll()
End If
Next
End Sub