TextCompositionManager.AddTextInputUpdateHandler 方法

定义

为附加事件添加处理程序 TextInputUpdate

public:
 static void AddTextInputUpdateHandler(System::Windows::DependencyObject ^ element, System::Windows::Input::TextCompositionEventHandler ^ handler);
public static void AddTextInputUpdateHandler(System.Windows.DependencyObject element, System.Windows.Input.TextCompositionEventHandler handler);
static member AddTextInputUpdateHandler : System.Windows.DependencyObject * System.Windows.Input.TextCompositionEventHandler -> unit
Public Shared Sub AddTextInputUpdateHandler (element As DependencyObject, handler As TextCompositionEventHandler)

参数

element
DependencyObject

要向其添加事件处理程序的依赖项对象。 依赖项对象必须是一个 UIElement 或一个 ContentElement

handler
TextCompositionEventHandler

指定要添加的处理程序的委托。

注解

此方法为此事件的冒泡版本添加处理程序。 有关此事件的隧道版本的信息,请参阅 PreviewTextInputUpdate

适用于

另请参阅