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.OperationStack Property (ArcObjects .NET 10.5 SDK) |
Operation stack of hooked control or application used for undo/redo operations.
[Visual Basic .NET] Public ReadOnly Property OperationStack As IOperationStack
[C#] public IOperationStack OperationStack {get;}
[C++]
HRESULT get_OperationStack(
IOperationStack** ppOperationStack
);
[C++]
Parameters ppOperationStack [out, retval]
ppOperationStack is a parameter of type IOperationStack
The IOperationStack of the hook passed to the ICommand::OnCreate event. The OperationStack is returned regardless of whether the hook is a ToolbarControl or ArcMap.
The property will return Nothing if the hook is a MapControl or PageLayoutControl that do not have an associated operation stack. If the hook is a ToolbarControl Nothing will be returned if the OperationStack has not been set into the ToolbarControl. A developer normally sets one ControlsOperationStack object into each IToolbarControl::OperationStack used in an application.
If the IToolbarControl::Buddy, IMapControl2::Map or IPageLayoutControl::PageLayout changes a new ControlsOperationStack object will need passing to the IToolbarControl::OperationStack. Use the following events to do this: IToolbarControlEvents::OnBuddyChanged, IMapControlEvents2::OnMapReplaced, IPageLayoutControlEvents::OnPageLayoutReplaced and IPageLayoutControlEvents::OnFocusMapChanged.
1060 800A0424: The supplied hook is not valid.