TextCompositionEventArgs(InputDevice, TextComposition) 构造函数

定义

初始化 TextCompositionEventArgs 类的一个新实例,将指定的 InputDeviceTextComposition 作为类的初始值。

public:
 TextCompositionEventArgs(System::Windows::Input::InputDevice ^ inputDevice, System::Windows::Input::TextComposition ^ composition);
public TextCompositionEventArgs (System.Windows.Input.InputDevice inputDevice, System.Windows.Input.TextComposition composition);
new System.Windows.Input.TextCompositionEventArgs : System.Windows.Input.InputDevice * System.Windows.Input.TextComposition -> System.Windows.Input.TextCompositionEventArgs
Public Sub New (inputDevice As InputDevice, composition As TextComposition)

参数

inputDevice
InputDevice

与此事件关联的输入设备。

composition
TextComposition

与此事件关联的 TextComposition 对象。

例外

composition 为 null 时引发

适用于