How do I programmatically unselect a selected object or a view’s selection?
I tried using view.Selection.RemoveSelectionHandles() call to unselect all the currently selected objects. This removes the selection handles, but when I go to some other window and come back, the selection handles are back?
Looks like this call is updating th UI but not the internal data, due to which any refresh is causing the handles to return back.
Please tell me what I am doing wrong. Which is the right method to programmatically unselect the objects?
GoView.Selection is a GoSelection, which implements IGoCollection, so you can Add to it, Remove from it, Clear it, or ask if it Contains something.