Show / Hide Table of Contents

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
byte[] hidCodes

An array of keyboard HID codes.

Returns

string

A string of characters that would have been generated by the keyboard HID codes.

Exceptions

Type Condition
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.

In this article
Back to top Generated by DocFX