TextCompositionManager.AddPreviewTextInputStartHandler 方法

定義

加入 PreviewTextInputStart 附加事件的處理常式。

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

參數

element
DependencyObject

要在其中加入事件處理常式的相依性物件。 相依性物件必須是 UIElementContentElement

handler
TextCompositionEventHandler

可指定要加入之處理常式的委派。

備註

這個方法會新增這個事件的通道版本的處理程式。 如需此事件反升版本的相關信息,請參閱 TextInputStart

適用於

另請參閱