ArcObjects Library Reference (Controls)  

IHookActions.DoActionWithNameOnMultiple Method

Perform the action on the array of objects using the array of names.

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

Parameters

pArray [in]

  pArray is a parameter of type IArray

pNamesArray [in]

  pNamesArray is a parameter of type IStringArray

Action [in]

  Action is a parameter of type esriHookActions

Product Availability

Available with ArcGIS Engine.

Description

DoActionWithNameOnMultiple performs the specified Action on the objects in the specified array in the ActiveView. For example, pass esriHookActionsLabel to label the specified objects with the specfied labels. Use the ActionSupportedOnMultiple method before DoActionWithNameOnMultiple 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.

pNamesArray is an array of strings used by esriHookActionsLabel and esriHookActionsCallout actions.

Ensure pArray and pNamesArray contain the same number of elements.

See Also

IHookActions Interface