Returns or sets the value of the capability specified by Capability property when the value of the CapType property is TWON_ONEVALUE. 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 CapValue { get; set; }
Visual Basic
Public Property CapValue As Double
	Get
	Set

Remarks

Reading this property after calling CapGet() method. After setting this property, call CapSet() method to actually set the value. The Double type of CapValue property is used to present Double, Single(Float), Long, Integer and even Boolean types. For String type, please use CapValueString property. 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 GetCapItems and GetCapItemsString, where GetCapItemsString is used to present String type and GetCapItems is used to present other types. GetCapItems and GetCapItemsString are used when the container type is TWON_ARRAY or TWON_ENUMERATION.

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