CapInfo property (ILEADTwainCapability Interface)

Visual Basic Example

Syntax

ICapability2 * CapInfo

Overview

Refer to How to Work with the Containers – Visual Basic.

Remarks

References an ICapability2 interface.

To set a capability, update the Capability property (if the capability constant is a short value) or the CapabilityLong property (if the capability constant is a long value), as well as the ConType property of the ICapability2 interface using the CapInfo property. Based on the value set in the ConType property of the ICapability2 interface, the container for the capability can be set using one of the following properties:

CapArray property

CapEnum property

CapOneValue property

CapRange property

Once all appropriate properties are set, call the SetCapability2 method to set the capability.

To get a capability, set the Capability property (if the capability constant is a short value) or the CapabilityLong property (if the capability constant is a long value), as well as the ConType property of the ICapability2 interface. You can set the ConType property to L_TWON_DONTCARE16 since it will be updated with the type of the retrieved capability. Call the GetCapability2 method. This will update the ConType property with the type of the retrieved capability. Based on the value of the ConType property of the ICapability2 interface, the container for the capability can be obtained using one of the following properties:

CapArray property

CapEnum property

CapOneValue property

CapRange property

See Also

Elements

Capability property, ConType property, CapArray property, CapEnum property, CapOneValue property, CapRange property, CapabilityLong property

Topics

TWAIN Functionality: Image Functions