Method Cancel
- Namespace
- VectorDraw.Professional.ActionUtilities
- Assembly
- VectorDraw.Professional.dll
Cancel()
Cancels all active commands and actions currently running in the Document.
public void Cancel()
Remarks
This method terminates all active commands and actions in the action queue, including nested or concurrent commands.
Use this method to stop all ongoing operations and reset the Document to a neutral state where no commands are waiting for input.
If you need to cancel only the most recent command while keeping others running, use Cancel1() instead.
Example: Cancel all active commands at once.
vdDocument doc = vdFramedControl.BaseControl.ActiveDocument;
// Multiple commands may be running
doc.CommandAction.Cancel(); // Cancels all commands
// Document is now ready for new operations