GdPicture.NET.14.API
GdPicture14 Namespace / GdPictureImaging Class / TwainGetAvailableCapValuesCount Method
A member of the TwainCapabilities enumeration.





In This Topic
TwainGetAvailableCapValuesCount Method (GdPictureImaging)
In This Topic
Returns the number of available values for the selected TWAIN capability which can be used with it by the opened source in its current configuration.
Syntax
'Declaration
 
Public Function TwainGetAvailableCapValuesCount( _
   ByVal Cap As TwainCapabilities _
) As Integer
public int TwainGetAvailableCapValuesCount( 
   TwainCapabilities Cap
)
public function TwainGetAvailableCapValuesCount( 
    Cap: TwainCapabilities
): Integer; 
public function TwainGetAvailableCapValuesCount( 
   Cap : TwainCapabilities
) : int;
public: int TwainGetAvailableCapValuesCount( 
   TwainCapabilities Cap
) 
public:
int TwainGetAvailableCapValuesCount( 
   TwainCapabilities Cap
) 

Parameters

Cap
A member of the TwainCapabilities enumeration.

Return Value

If Success, non zero: Number of values available for the selected TWAIN capability. Else 0 if fail -> Use TwainGetLastResultCode() and TwainGetLastConditionCode() methods for diagnosing the error.
Remarks
Before using this method check that the TWAIN state is >= 4 (TWAIN_SOURCE_OPEN) To get the TWAIN state, use the TwainGetState() method.
See Also