Stops recording the most recently started composite operation and discards the records created so far.
Namespace: MindFusion.Spreadsheet.Wpf
Assembly: MindFusion.Spreadsheet.Wpf
C# Copy Code |
---|
public void CancelCompositeOperation () |
Visual Basic Copy Code |
---|
Public Sub CancelCompositeOperation () |
The usual scenario for cancelling a composite command is when an exception happens while the command is active. The code below illustrates this scenario.
C# Copy Code |
---|
var command = workbook.StartCompositeOperation(); |
Visual Basic Copy Code |
---|
Dim command = workbook.StartCompositeOperation() |
Alternatively, the command can be cancelled by calling its Cancel method.