A member of the TwainCapabilities enumeration.
A member of the TwainItemTypes enumeration.You can determine the type of each TWAIN capability using the TwainGetCapItemType method or looking the twain references from http://www.twain.org.
New value to set to the selected TWAIN capability.





In This Topic
GdPicture14 Namespace / GdPictureImaging Class / TwainSetCapCurrentString Method

TwainSetCapCurrentString Method (GdPictureImaging)

In This Topic
Changes the current value of a TWAIN capability.
Syntax
'Declaration

 

Public Function TwainSetCapCurrentString( _

   ByVal Cap As TwainCapabilities, _

   ByVal ItemType As TwainItemTypes, _

   ByVal NewValue As String _

) As Boolean
public bool TwainSetCapCurrentString( 

   TwainCapabilities Cap,

   TwainItemTypes ItemType,

   string NewValue

)
public function TwainSetCapCurrentString( 

    Cap: TwainCapabilities;

    ItemType: TwainItemTypes;

    NewValue: String

): Boolean; 
public function TwainSetCapCurrentString( 

   Cap : TwainCapabilities,

   ItemType : TwainItemTypes,

   NewValue : String

) : boolean;
public: bool TwainSetCapCurrentString( 

   TwainCapabilities Cap,

   TwainItemTypes ItemType,

   string* NewValue

) 
public:

bool TwainSetCapCurrentString( 

   TwainCapabilities Cap,

   TwainItemTypes ItemType,

   String^ NewValue

) 

Parameters

Cap
A member of the TwainCapabilities enumeration.
ItemType
A member of the TwainItemTypes enumeration.You can determine the type of each TWAIN capability using the TwainGetCapItemType method or looking the twain references from http://www.twain.org.
NewValue
New value to set to the selected TWAIN capability.

Return Value

True if success, else False -> 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. This method can be used to set the following types of capabilities: TWTY_STR32, TWTY_STR64, TWTY_STR128, TWTY_STR255.
See Also