共用方式為


Menu.OnTextInput(TextCompositionEventArgs) 方法

定義

處理 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)

參數

e
TextCompositionEventArgs

事件資料。

屬性

備註

此實作不會改變事件資料的TextInput處理狀態(屬性Handled)。

給繼承者的注意事項

如果你覆寫 OnTextInput(TextCompositionEventArgs),務必在實 OnTextInput(TextCompositionEventArgs) 作中呼叫基礎實作。 未能呼叫基礎實作會阻止基底類別用類別處理器處理事件,這可能會改變最後一個類別的執行時行為。 你可以根據需求,在特別處理前或之後呼叫基地實作。

適用於