TextCompositionManager.AddPreviewTextInputUpdateHandler 方法

定义

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

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

参数

element
DependencyObject

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

handler
TextCompositionEventHandler

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

注解

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

适用于

另请参阅