Returns or sets the type of capability container used to exchange capability information between application and source. 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 TWCapType CapType { get; set; }
Visual Basic
Public Property CapType As TWCapType
	Get
	Set

Remarks

Allowed ValuesDescription
TWON_ARRAY(3) An array of associated individual values. CapNumItems property, GetCapItems/SetCapItems/GetCapItemsString/SetCapItemsString are valid.
TWON_ENUMERATION(4)A group of associated individual values. The values are ordered from the lowest to highest values, but the step size between every two values is probably not uniform. CapNumItems property, CapCurrentIndex property, CapDefaultIndex property, GetCapItems/SetCapItems/GetCapItemsString/SetCapItemsString are valid.
TWON_ONEVALUE(5)A single value. CapValue property or CapValueString property is valid.
TWON_RANGE(6)A range of individual values. CapMinValue property, CapMaxValue property, CapStepSize property, CapDefaultValue property and CapCurrentValue property are valid.

CapType property does not need to be set before CapGet() is called. CapDefaultIndex property and CapDefaultValue property reflect power-on values and are not available with CapSet().

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