GetString Method
GetString(Byte[])
Given a collection of HID codes, returns the string that it would produce.
C#
public string GetString(byte[] hidCodes)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | hidCodes | An array of keyboard HID codes. |
Returns
System.String
A string of characters that would have been generated by the keyboard HID codes.
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException | At least one of the HID codes was not mapped in this HidCodeTranslator instance. |
Remarks
Only HID codes that are mapped in this KeyboardLayout should be in this collection.