_Application.EnableCancelKey Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應