共用方式為


CharacterReceivedEventArgs.KeyCode 屬性

定義

取得輸入佇列所接收之字元的虛擬密鑰代碼。

public:
 property unsigned int KeyCode { unsigned int get(); };
uint32_t KeyCode();
public uint KeyCode { get; }
var uInt32 = characterReceivedEventArgs.keyCode;
Public ReadOnly Property KeyCode As UInteger

屬性值

UInt32

unsigned int

uint32_t

UTF-16 編碼中的字元。

備註

每個增補字元都包含以兩個不同的事件傳送的 Surrogate 配對

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

適用於

另請參閱