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.TWAIN
Assembly: DynamicDotNetTWAIN (in DynamicDotNetTWAIN.dll) Version: 3.0.0.0 (3.0.0.0)

Syntax

C#
public bool SetCapItems(
	int iIndex,
	double dbValue
)
Visual Basic
Public Function SetCapItems ( _
	iIndex As Integer, _
	dbValue As Double _
) As Boolean

Parameters

iIndex
Type: System..::..Int32
The index is 0-based.
dbValue
Type: System..::..Double
Capability property value.

Return Value

True indicates success. False indicates failure.

Remarks

After setting this property, call CapSet() method to actually set the value. The SetCapItems property is used to present Double, Single(Float), Long, Integer and even Boolean types. For String type, please use SetCapItemsString. When using Double type for Boolean type, 1 denotes true, 0 denotes false. The constant true/False of Visual Basic can NOT be used. This is very like CapValue property and CapValueString property, where CapValueString property is used to present String type and CapValue is used to present other types. CapValue property and CapValueString property are used when the container type is TWON_ONEVALUE.

Exceptions

ExceptionCondition
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.

See Also