GdPicture.NET Reference Guide
TwainGetAvailableBarCodeTypeCount Method (GdPictureImaging)

GdPicture14 Namespace > GdPictureImaging Class : TwainGetAvailableBarCodeTypeCount Method
If barcode detection is available, returns the number of bar code types that can be detected.
Public Function TwainGetAvailableBarCodeTypeCount() As Integer
public int TwainGetAvailableBarCodeTypeCount()
public function TwainGetAvailableBarCodeTypeCount(): Integer; 
public function TwainGetAvailableBarCodeTypeCount() : int;
public: int TwainGetAvailableBarCodeTypeCount(); 
int TwainGetAvailableBarCodeTypeCount(); 

Return Value

If Success, non zero: the number of bar code types that can be detected. Else 0 if fail. Use TwainGetLastResultCode() and TwainGetLastConditionCode() methods for diagnosing the error.
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


GdPictureImaging Class
GdPictureImaging Members
TwainGetState Method
TwainGetAvailableBarCodeTypeNo Method