The following tables list the members exposed by TwainDevice.
Public Constructors
Public Properties
| Name | Description |
| ApplicationIdentity | Returns the ApplicationIdentity properties. |
| Caption | Returns the Caption properties. |
| CloseOnCancel | Specifies whether the TWAIN User Interface should be closed when the operation is cancelled. |
| CloseSessionAfterAcquisition | "Gets or sets a value indicating whether the session with the data source and data source manager will be closed before returning from the StartSession method." |
| DataSourceManagerVersion | Specifies what version of the TWAIN Data Source Manager is used, by default it is set to LatestSupportedVersionAvailable. |
| DataSourceManagerVersionInUse | Specifies what version of the TWAIN Data Source Manager is currently in use. |
| EnableExtendedCapabilities | Enables the extended capabilities CAP_FEEDPAGE and CAP_CLEARPAGE. |
| EnableExtendedImageInfo | Enables if extended image info attributes can be retrieved from the source. |
| ImageLayout | Gets or sets the Image Layout rectangle for the current Data Source. |
| MaximumImages | Gets or sets the maximum number of images expected from a TWAIN Data Source that supports multiple image scanning. |
| ShowUserInterface | Gets or sets the Data Source User Interface flag. |
| TransferMode | Gets or sets the transfer mode for scanning. |
Top
Public Methods
| Name | Description |
| CloseSession | Disables and closes the current Data Source and Data Source Manager. For every OpenSession or OpenDataSourceManager method call you need to close the TwainPRO session with CloseSession. This method will also Cancel any pending image transfers if the Data Source was in the Image Transfer state. |
| DisplayUserInterface | Displays the User Interface. |
| Dispose | Disposes of unmanaged resources. |
| GetCapability | Overloaded. Returns a CapabilityContainer with information for the specified capability. |
| GetCapabilityConstantDescription | Returns a description of a constant for the current capability. This is a runtime, read-only property. |
| GetCustomDataSourceData | Gets custom data (current settings, e.g., DPI, paper size, color format) from the source to the application. The source settings will be returned in a format that is source dependent and not defined by TWAIN. |
| IsCapabilitySupported | Overloaded. Determines if the current capability is supported by the TWAIN device. |
| LoadSettings | Loads the scanner settings from file. |
| OpenDataSourceManager | Opens the Source Manager. Use this method only to set the Data Source without using the SelectSource method. |
| OpenSession | Opens the Data Source Manager and Data Source, placing TwainPRO into the Capability Negotiation state. |
| SaveSettings | Saves the scanner settings to file. |
| SelectSource | Displays the TWAIN Data Source Manager's Source Selection User Interface (UI) so the user can choose which Data Source is the current Source. |
| SetCapability | Sets a TWAIN capability using the specified values. |
| SetCustomDataSourceData | Sets custom data (current settings, e.g., DPI, paper size, color format) of the source from the application. The source settings are in a format that is source dependent and not defined by TWAIN. |
| StartSession | Enables the Current Data Source and places it into the Image Transfer state. Displays the Data Source User Interface if ShowUserInterface is True. This method will return when the user closes the UI if the ShowUserInterface property is True or after the image transfer if ShowUserInterface is False. |
Top
Public Events
See Also