Programmatically Select Multiple links

I want to be able to select multiple links programmatically.
I know how to select a single object.
I tried using a for loop with

GoView.Selection.Select(GoObject)

but just one link selected in the graph (probably the last one in the for loop).

Thanks!

There’s also

GoView.Selection.Add(GoObject)


and


GoView.Selection .AddRange(IGoCollection)


Note the events you get back from these two is different if you care about that.


Jake

That worked, Thanks!

Hi ,
I want to select the link between nodes after connect to each other . how we can do.

GoJS or GoDiagram?