共用方式為


CharacterReceivedEventArgs 類別

定義

包含 InputKeyboardSource.CharacterReceived 事件的事件資料。

public ref class CharacterReceivedEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Foundation.WindowsAppSDKContract, 65540)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class CharacterReceivedEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Foundation.WindowsAppSDKContract), 65540)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class CharacterReceivedEventArgs
Public NotInheritable Class CharacterReceivedEventArgs
繼承
Object Platform::Object IInspectable CharacterReceivedEventArgs
屬性

備註

當啟用 輸入法編輯器 (輸入法) 時,應用程式不會收到此事件。 輸入法編輯器 (輸入法) 處理所有鍵盤輸入,並將 Handled 設定為 true。

屬性

Handled

取得或設定是否已處理 InputKeyboardSource.CharacterReceived 事件。

KeyCode

取得輸入佇列所接收之字元的虛擬索引鍵代碼。

KeyStatus

取得引發字元接收事件之實體按鍵按下的狀態。

適用於