AccusoftTwainPro9 ActiveX DLL > TwainPro Object : CapDesc Property |
Visual Basic |
---|
Public Property CapDesc( _ ByVal Index As Long _ ) As String |
When CapType = TWCAP_ENUM, the Source may return a list of constants that signify settings.
For example, if Capability = TWCAP_PIXELTYPE, and the Source returns a TWCAP_ENUM containing the constants, TWPT_BW (0), TWPT_GRAY (1), TWPT_RGB (2) a description of each may be obtained with the CapDesc property.
TwainPRO.CapDesc( TWPT_BW ) would return "Black & White". This can be used for filling a listbox or combobox with descriptions of available values instead of just the constants.