編輯

共用方式為


_Application.EnableCancelKey Property

Definition

Returns or sets the way that Word handles CTRL+BREAK user interruptions.

public:
 property Microsoft::Office::Interop::Word::WdEnableCancelKey EnableCancelKey { Microsoft::Office::Interop::Word::WdEnableCancelKey get(); void set(Microsoft::Office::Interop::Word::WdEnableCancelKey value); };
public Microsoft.Office.Interop.Word.WdEnableCancelKey EnableCancelKey { get; set; }
member this.EnableCancelKey : Microsoft.Office.Interop.Word.WdEnableCancelKey with get, set
Public Property EnableCancelKey As WdEnableCancelKey

Property Value

Remarks

Use this property very carefully. If you use wdCancelDisabled, there's no way to interrupt a runaway loop or other non – self-terminating code. Also, the EnableCancelKey property is not reset to wdCancelInterrupt when your code stops running; unless you explicitly reset its value, it will remain set to wdCancelDisabled for the duration of the Word session.

Applies to