Menu.OnTextInput(TextCompositionEventArgs) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
處理當功能表收到來自任何裝置的文字輸入時,所發生的 TextInput 路由事件。
protected:
override void OnTextInput(System::Windows::Input::TextCompositionEventArgs ^ e);
[System.Security.SecurityCritical]
[System.Security.SecurityTreatAsSafe]
protected override void OnTextInput (System.Windows.Input.TextCompositionEventArgs e);
protected override void OnTextInput (System.Windows.Input.TextCompositionEventArgs e);
[<System.Security.SecurityCritical>]
[<System.Security.SecurityTreatAsSafe>]
override this.OnTextInput : System.Windows.Input.TextCompositionEventArgs -> unit
override this.OnTextInput : System.Windows.Input.TextCompositionEventArgs -> unit
Protected Overrides Sub OnTextInput (e As TextCompositionEventArgs)
參數
事件資料。
- 屬性
備註
此實作不會 (事件資料的屬性) TextInput 變更已處理的狀態 Handled 。
給繼承者的注意事項
如果您覆寫 OnTextInput(TextCompositionEventArgs) ,請一律在實作中呼叫基底實作 OnTextInput(TextCompositionEventArgs) 。 無法呼叫基底實作可防止基類使用類別處理常式處理事件,這可能會變更最終類別的執行時間行為。 視需求而定,您可以在特殊處理之前或之後呼叫基底實作。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應