Compartilhar via


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

See Also

Reference

ContentControlExitingEventArgs Interface

Microsoft.Office.Tools.Word Namespace