|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ICommandHook
Provides access to members that work with HookHelper. Custom control or application needs to implement ICommandHook to be recognized by HookHelper.
Implement the ICommandHook interface in custom controls and applications if you want them to work with HookHelper objects. The HookHelper is designed to help developers write custom commands that will work with the ArcGIS Engine MapControl, PageLayoutControl, ToolbarControl and the ArcMap application as well as custom applications.
Method Summary | |
---|---|
IActiveView |
getActiveView()
Active view of control or application. |
IOperationStack |
getOperationStack()
Operation stack of control or application used for undo/redo operation. |
IPageLayout |
getPageLayout()
Page layout of control or application. |
Method Detail |
---|
IActiveView getActiveView() throws IOException, AutomationException
The IActiveView object used by the custom control or application.
The HookHelper is often used in custom commands and the IHookHelper::ActiveView can return the IActiveView of the hook by using this property.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IPageLayout getPageLayout() throws IOException, AutomationException
The IPageLayout object used by the custom control or application.
The HookHelper is often used in custom commands and the IHookHelper::PageLayout can return the IPageLayout of the hook by using this property.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IOperationStack getOperationStack() throws IOException, AutomationException
The IOperationStack object used by the custom control or application.
The HookHelper is often used in custom commands and the IHookHelper::OperationStack can return the IOperationStack of the hook by using this property. If the command has been added to a ToolbarControl the property will always return the IToolbarControl::OperationStack.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |