Method SetDevice
SetDevice(String)
Sets the active signature device that should be used for signature interactions, for instance StartSignatureMode(SignMode). If not set, the driver chooses a device on its own. For getting device names, use DeviceSearch(out String[], Int32, FilterDeviceKind) or EnumerateDevices(out String[], out Int32, FilterDeviceKind).
Declaration
Error SetDevice(string deviceName)
Parameters
Type | Name | Description |
---|---|---|
System.String | deviceName | Name of the device to be selected. |
Returns
Type | Description |
---|---|
Error | Error |
Examples
This example searches for StepOver signature pads, and selects the first from the list.
C#
error = driver.EnumerateDevices(out string[] padStrings, out int count, FilterDeviceKind.dkNoDevice);
error = driver.SetDevice(padStrings.FirstOrDefault());
if (Error.SUCCESS != error)
{
//handle error
}
VB.NET
Dim padStrings As String()
r = driver.DeviceSearch(padStrings, 0, FilterDeviceKind.dkStepOver)
r = driver.SetDevice(padStrings.FirstOrDefault())
If(r <> [Error].SUCCESS) Then
'handle error
End If