This document is archived and information here might be outdated.  Recommended version.


IHookActions.DoActionOnMultiple Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IH > IHookActions Interface > IHookActions.DoActionOnMultiple Method
ArcGIS Developer Help

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