TextCompositionEventArgs(InputDevice, TextComposition) 建構函式

定義

初始化 TextCompositionEventArgs 類別的新執行個體,並將指定的 InputDeviceTextComposition 做為類別的初始值。Initializes a new instance of the TextCompositionEventArgs class, taking a specified InputDevice and TextComposition as initial values for the class.

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

與這個事件關聯的輸入裝置。The input device associated with this event.

composition
TextComposition

與這個事件關聯的 TextComposition 物件。A TextComposition object associated with this event.

例外狀況

compositionnull 時引發。Raised when composition is null.

適用於