Dynamic Web TWAIN  - TWAIN ActiveX/Plug-in, Scanner COM Control
TWAIN ActiveX/Plug-in HTTP Control/SDK

CapType Property


Sets or returns the type of capability container used to exchange capability information between application and source. This is a runtime property.

Data type

Enumerated value / Integer


ObjectName. CapType

Value Description
TWON_ARRAY(3) A array of associated individual values. 
property, CapItems property/CapItemsString property 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, CapItems property/CapItemsString property 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().

When an error occurs and IfThrowException property is TRUE, an exception will be thrown. Check ErrorCode property and ErrorString property for error information.

See also

Capability property, CapGet(), CapGetDefault(), CapGetCurrent(), CapSet()

Sample code

Refer to How to Negotiate Capability with Different Capability Container Types.




TWAIN ActiveX | TWAIN Plug-in | TWAIN Control | TWAIN SDK | Scanner COM
Software Configuration Management | Version Control | Source Control
Copyright © 2011 Dynamsoft Corporation. All Rights Reserved.