Visual Basic (Declaration) | |
---|---|
Public Event UndoRedoChanged() As EventHandler |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public event EventHandler UndoRedoChanged() |
C++/CLI | |
---|---|
public: event EventHandler^ UndoRedoChanged(); |
This example updates an Undo and Redo menu handler's status.
Visual Basic | Copy Code |
---|---|
Public Sub AnnAutomation_UndoRedoChanged(ByVal manager As AnnAutomationManager) |
C# | Copy Code |
---|---|
public void AnnAutomation_UndoRedoChanged(AnnAutomationManager manager) |
This event will be fired when the undo/redo buffer changes. This gives the application a chance to update the user interface if needed.
The undo/redo buffer changes whenever an object inside the Container changes either by user interaction through the user interface or by code.
You can use the CanUndo and CanRedo property to determine whether this AnnAutomation can undo or redo an operation.
For more information, refer to Undoing Automation Operations.
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family