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


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

IHookHelper Interface

Provides access to members needed when developing commands to work with the MapControl, PageLayoutControl, ArcMap, and custom controls and applications.

Product Availability

Available with ArcGIS Engine.

Description

Use the IHookHelper interface to return the ActiveView, PageLayout or FocusMap of the hook passed to the ICommand::OnCreate event regardless of whether the hook is a MapControl, PageLayoutControl, ToolbarControl or ArcMap.

Members

Name Description
Read-only property ActiveView Active view of hooked control or application.
Read-only property FocusMap Focus map of hooked control or application.
Read/write property Hook Hook object that should be the same as the hook object passed in ICommand::OnCreate.
Read-only property OperationStack Operation stack of hooked control or application used for undo/redo operations.
Read-only property PageLayout Page layout of hooked control or application.

Classes that implement IHookHelper

Classes Description
HookHelper Helps commands work with the MapControl, PageLayoutControl, ArcMap, custom controls and applications.

.NET Samples

Move a graphic along a path in ArcMap Configure a command for a specific locale Using HookActions in custom commands Using HookActions in custom commands Using HookActions in custom commands Using HookActions in custom commands Using HookActions in custom commands Using HookActions in custom commands Custom map navigation commands Custom map navigation commands Custom map navigation commands Custom map navigation commands Custom map navigation commands Custom map navigation commands Custom map navigation commands Custom map navigation commands Custom map navigation commands Custom map navigation commands Custom map navigation commands Custom map navigation commands Custom map selection commands Custom map selection commands Dynamic biking Dynamic biking Dynamic biking Dynamic cache layer manager controller Dynamic cache layer manager controller Dynamic display animated zoom Dynamic display animated zoom Dynamic logo Tabbed feature inspector Editing using a custom form Custom vertex editing commands Custom vertex editing commands Create a geoprocessing tool to buffer a layer and retrieve messages Create a geoprocessing tool to buffer a layer and retrieve messages Graphics layers ToolControl Graphics layers ToolControl Synchronized MapControl and PageLayoutControl application Save a layer file in a MapControl application Save a layer file in a MapControl application Save a layer file in a MapControl application Save a layer file in a MapControl application Building a MapViewer application using the ArcGIS Engine controls Simple dynamic display application Simple dynamic display application Simple dynamic display application Dynamic display layer RSS weather GraphicTracker RSS weather layer RSS weather layer RSS weather layer RSS weather layer RSS weather layer RSS weather layer Schematics Engine application Simple point plug-in data source Simple point plug-in data source Add map surrounds using the SymbologyControl Add map surrounds using the SymbologyControl Add map surrounds using the SymbologyControl Updating the purge rule on a real-time temporal layer Temporal statistics Using the ITAControlUpdate interface Add a custom bookmarks MultiItem to the ToolbarControl Add a custom bookmarks MultiItem to the ToolbarControl Creating a zoom factor extension that works with a ToolbarControl Creating a zoom factor extension that works with a ToolbarControl Creating a zoom factor extension that works with a ToolbarControl Triangle graphic element