Description This function retrieves the type of the container of the capability.
Usage ret = [form.]TWAIN. GetContainerOfCapability CapId Type
Returns ret Long Container type of capability on success, otherwise -1.
Remarks CapId Long Capability ID.
Type Short If this parameter is zero, the method retrieves the type of the container needed for getting the value of the capability. If the Type parameter is not zero, the method retrieves the type of the container needed for setting the capability.
Programing Notes
Available values
C_ONEVALUE (= 1)
C_ENUM (= 2)
C_ARRAY (= 4)
C_RANGE (= 8)
One capability can support more than one container type. So if you call the
GetContainerOfCapability method you can get all the container types that the specified capability supports.
For example: if the return value is 11:
11 = 1 (C_ONEVALUE) + 2 (C_ENUM) + 8 (C_RANGE)
See Also GetIDOfCapability Method