v2.33
 
ISelection Interface Reference

Contains methods to work with selection in the model. More...

Inheritance diagram for ISelection:

Public Member Functions

HRESULT GetSelectedObjects ([out, retval] SAFEARRAY(int) *pObjectIds)
 Returns a collection of IDs of objects selected in the current view.
 
HRESULT SetSelectedObjects ([in] SAFEARRAY(int) objectIds)
 Select objects by a collection of their IDs.
 

Detailed Description

Contains methods to work with selection in the model.

A model object can be either selected or not. This interface provides methods to query the IDs of selected objects and select sets of objects by their IDs.

See _ISelectionEvents for a list of events relating to selection operation.

Member Function Documentation

◆ GetSelectedObjects()

HRESULT GetSelectedObjects ( [out, retval] SAFEARRAY(int) * pObjectIds)

Returns a collection of IDs of objects selected in the current view.

Returns
Collection of IDs of selected objects.

◆ SetSelectedObjects()

HRESULT SetSelectedObjects ( [in] SAFEARRAY(int) objectIds)

Select objects by a collection of their IDs.

Parameters
[in]objectIdsAn array of IDs of object to select.