Returns 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 double GetCapItems(
	int iIndex
)
Visual Basic
Public Function GetCapItems ( _
	iIndex As Integer _
) As Double

Parameters

iIndex
Type: System..::..Int32
The index is 0-based.

Return Value

Capability property value.

Remarks

Reading this property after calling CapGet() method. This property has a parameter. The data type of the parameter is int and it is 0-based. The GetCapItems is used to present Double, Single(Float), Long, Integer and even Boolean types. For String type, please use GetCapItemsString. 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