Udostępnij za pośrednictwem


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

See Also

Reference

ContentControlExitingEventArgs Class

ContentControlExitingEventArgs Members

Microsoft.Office.Tools.Word Namespace