Adding and Removing Objects from Selections

You can add or remove an object from a selection in one of two ways. You can use:

AddOrRemoveCurrentObject method of AIS_InteractiveContext at neutral points

or

AddOrRemoveCurrent method if a local context is opened.

For more information, refer to the entry for this class in the reference documentation.