共用方式為


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 物件。

例外狀況

compositionnull 時引發。

適用於