←Select platform

SelectedSourceTwainVersion Method

Summary
Gets the TWAIN version of the selected TWAIN source.

Syntax
C#
C++/CLI
Python
public TwainVersion SelectedSourceTwainVersion() 
public: 
TwainVersion SelectedSourceTwainVersion();  
def SelectedSourceTwainVersion(self): 
Remarks

For more information, refer to Managing the TWAIN Source.

Example
C#
using Leadtools; 
using Leadtools.Twain; 
 
 
public void SelectedSourceTwainVersionExample(IntPtr parent) 
{ 
   TwainSession session = new TwainSession(); 
   session.Startup(parent, "manufacturer", "productFamily", "version", "application", TwainStartupFlags.None); 
 
   // Twain data source name is case-sensitive 
   session.SelectSource("TWAIN_32 Sample Source"); 
   MessageBox.Show(Enum.GetName(typeof(TwainVersion), session.SelectedSourceTwainVersion())); 
   session.Shutdown(); 
} 
Requirements

Target Platforms

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Twain Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.