Sets an array of values of the capability specified by Capability property, when the value of the CapType property is TWON_ARRAY or TWON_ENUMERATION.
This is a runtime property.
Namespace: Dynamsoft.DotNet.TWAINAssembly: DynamicDotNetTWAIN (in DynamicDotNetTWAIN.dll) Version: 3.0.0.0 (3.0.0.0)
Syntax
| C# |
|---|
public bool SetCapItemsString( int iIndex, string strValue ) |
| Visual Basic |
|---|
Public Function SetCapItemsString ( _ iIndex As Integer, _ strValue As String _ ) As Boolean |
Parameters
- iIndex
- Type: System..::..Int32
The index is 0-based.
- strValue
- Type: System..::..String
Capability property value.
Return Value
True indicates success. False indicates failure.
Remarks
After setting this property, call CapSet() method to actually set the value.
SetCapItemsString property is used to set String type values. For other data types, use SetCapItems property.
Exceptions
| Exception | Condition |
|---|---|
| Dynamsoft.DotNet.TWAIN..::..TwainException | When an error occurs and IfThrowException property is true, an exception will be thrown. When IfThrowException property is false, please check ErrorCode and ErrorString. |