| Revit 2022.1 API |
| ProgressChangedEventArgs..::..Cancel Method |
| ProgressChangedEventArgs Class See Also |
Requests to cancel the progress bar's operation.
Namespace: Autodesk.Revit.DB.Events
Assembly: RevitAPI (in RevitAPI.dll) Version: 22.0.0.0 (22.1.1.0)
Since:
2013
Syntax
| C# |
|---|
public void Cancel() |
| Visual Basic |
|---|
Public Sub Cancel |
| Visual C++ |
|---|
public: void Cancel() |
Remarks
Note that an operation may only be cancelled if its stage is
'Unchanged' or if its stage is 'PositionChanged' and the 'Cancellable' property is 'true.'
Exceptions
| Exception | Condition |
|---|---|
| Autodesk.Revit.Exceptions..::..InvalidOperationException | The operation cannot be cancelled. |