ContentControlExitingEventArgs.Cancel Property (2007 System)
Gets or sets a value that indicates whether to cancel the Exiting event.
Namespace: Microsoft.Office.Tools.Word
Assembly: Microsoft.Office.Tools.Word.v9.0 (in Microsoft.Office.Tools.Word.v9.0.dll)
Syntax
'Declaration
Public Property Cancel As Boolean
'Usage
Dim instance As ContentControlExitingEventArgs
Dim value As Boolean
value = instance.Cancel
instance.Cancel = value
public bool Cancel { get; set; }
public:
property bool Cancel {
bool get ();
void set (bool value);
}
public function get Cancel () : boolean
public function set Cancel (value : boolean)
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.
See Also
Reference
ContentControlExitingEventArgs Class