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


ICommandHook.OperationStack Property (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Controls)  

ICommandHook.OperationStack Property

Operation stack of control or application used for undo/redo operation. Return NULL if control or application does not have its own operation stack.

[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**

Product Availability

Available with ArcGIS Engine.

Description

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.

See Also

ICommandHook Interface