ArcObjects Library Reference (Controls)  

IHookActions.DoActionOnMultiple Method

Perform the action on the array of objects.

[Visual Basic .NET]
Public Sub DoActionOnMultiple ( _
    ByVal pArray As IArray, _
    ByVal Action As esriHookActions _
)
[C#]
public void DoActionOnMultiple (
    IArray pArray,
    esriHookActions Action
);
[C++]
HRESULT DoActionOnMultiple(
  IArray* pArray,
  esriHookActions Action
);
[C++]

Parameters

pArray [in]

  pArray is a parameter of type IArray

Action [in]

  Action is a parameter of type esriHookActions

Product Availability

Available with ArcGIS Engine.

Description

DoActionOnMultiple performs the specified Action on the objects in the specified array in the ActiveView. For example, pass esriHookActionsZoom to zoom to the extent of the specified objects. Use the ActionSupportedOnMultiple method before DoActionOnMultiple is ensure the specified Action is supported.

pArray must contain objects implementing IEnvelope, IPoint, IPolygon or IPolyline and the geometry of each object should not be empty.

See Also

IHookActions Interface