TextCompositionManager.RemovePreviewTextInputHandler 方法

定義

移除 PreviewTextInput 附加事件的處理常式。

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

參數

element
DependencyObject

要從中移除事件處理常式的相依性物件。 相依性物件必須是 UIElementContentElement

handler
TextCompositionEventHandler

可指定要移除之處理常式的委派。

備註

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

適用於

另請參閱