ContentControlExitingEventArgs.Cancel Property
Gets or sets a value that indicates whether to cancel the Exiting event.
Namespace: Microsoft.Office.Tools.Word
Assembly: Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)
Syntax
'Declaration
Property Cancel As Boolean
bool Cancel { get; set; }
Property Value
Type: System.Boolean
true if the event is canceled; otherwise, false.
Remarks
If you cancel the event, focus is returned to the control.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.