KeyboardRemap.ImportKeys (string, bool) Method

Imports key definitions from an XML file or string for the embedded keyboard.

Syntax

[C#]
public static void ImportKeys(
    string str,
    bool additive
);

Parameters

str
Name of an existing XML key definition file or string containing an XML segment. If str points to an existing file, that file is imported. If str does not point to a file, an attempt is made to parse the string as an XML element.

additive
Boolean. Set to true if new keys are to be added to existing keys, or set to false if new keys replace all existing keys.

Exceptions

KeyboardRemapException

More Information

KeyboardRemap Class