This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IH > IHookHelper Interface > IHookHelper.FocusMap Property (ArcObjects .NET 10.5 SDK) |
Focus map of hooked control or application.
[Visual Basic .NET] Public ReadOnly Property FocusMap As IMap
[C#] public IMap FocusMap {get;}
[C++]
HRESULT get_FocusMap(
IMap** ppMap
);
[C++]
Parameters ppMap [out, retval]
ppMap is a parameter of type IMap
The focus map's Map object of the hook passed to the ICommand::OnCreate event. The FocusMap is returned regardless of whether the hook is a MapControl, PageLayoutControl, ToolbarControl (with a 'buddy' MapControl or PageLayoutControl) or ArcMap.
1063 800A0427: Failed to get active view.
1060 800A0424: The supplied hook is not valid.