Visual Basic
C#
Managed Extensions for C++
C++/CLI
Parameters
- capability
- A Capability.
- index
- The index of the Capability constant.
Return Value
A description of the specified Capability constant.When the capability type is TWCAP_ENUM, the Source may return a list of constants that signify settings.
For example, if Capability = ICAP_PIXELTYPE, and the Source returns a TWCAP_ENUM containing the constants, TwptBW (0), TwptGray (1), TwptRgb (2) a description of each may be obtained with the GetCapabilityConstantDescription method.
TwainPRO.GetCapabilityConstantDescription( Capability.IcapPixelType, (System.Int32)CapabilityConstants.TwptBW ) would return "Black and White". This can be used for filling a listbox or combobox with descriptions of available values instead of just the constants.