RVTDocs.com

RevitAPIPreEventArgs.Cancel

Method
Description:
When the event is cancellable, may call the Cancel() method to cancel it.
Remarks:
Not every event is cancellable. Whether or not an event may be cancelled is indicated by IsCancellable() method.
Syntax
public void Cancel()