The following tables list the members exposed by TwainDevice.
Public Properties
| Name | Description |
![Public Property](dotnetimages/publicProperty.png) | ApplicationIdentity | Returns the ApplicationIdentity properties. |
![Public Property](dotnetimages/publicProperty.png) | Caption | Returns the Caption properties. |
![Public Property](dotnetimages/publicProperty.png) | CloseOnCancel | Specifies whether the TWAIN User Interface should be closed when the operation is cancelled. |
![Public Property](dotnetimages/publicProperty.png) | 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." |
![Public Property](dotnetimages/publicProperty.png) | DataSourceManagerVersion | Specifies what version of the TWAIN Data Source Manager is used, by default it is set to LatestSupportedVersionAvailable. |
![Public Property](dotnetimages/publicProperty.png) | DataSourceManagerVersionInUse | Specifies what version of the TWAIN Data Source Manager is currently in use. |
![Public Property](dotnetimages/publicProperty.png) | EnableExtendedCapabilities | Enables the extended capabilities CAP_FEEDPAGE and CAP_CLEARPAGE. |
![Public Property](dotnetimages/publicProperty.png) | EnableExtendedImageInfo | Enables if extended image info attributes can be retrieved from the source. |
![Public Property](dotnetimages/publicProperty.png) | ImageLayout | Gets or sets the Image Layout rectangle for the current Data Source. |
![Public Property](dotnetimages/publicProperty.png) | MaximumImages | Gets or sets the maximum number of images expected from a TWAIN Data Source that supports multiple image scanning. |
![Public Property](dotnetimages/publicProperty.png) | ShowUserInterface | Gets or sets the Data Source User Interface flag. |
![Public Property](dotnetimages/publicProperty.png) | TransferMode | Gets or sets the transfer mode for scanning. |
Top
Public Methods
| Name | Description |
![Public Method](dotnetimages/publicMethod.png) | 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. |
![Public Method](dotnetimages/publicMethod.png) | DisplayUserInterface | Displays the User Interface. |
![Public Method](dotnetimages/publicMethod.png) | Dispose | Disposes of unmanaged resources. |
![Public Method](dotnetimages/publicMethod.png) | GetCapability | Overloaded. Returns a CapabilityContainer with information for the specified capability. |
![Public Method](dotnetimages/publicMethod.png) | GetCapabilityConstantDescription | Returns a description of a constant for the current capability. This is a runtime, read-only property. |
![Public Method](dotnetimages/publicMethod.png) | 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. |
![Public Method](dotnetimages/publicMethod.png) | IsCapabilitySupported | Overloaded. Determines if the current capability is supported by the TWAIN device. |
![Public Method](dotnetimages/publicMethod.png) | LoadSettings | Loads the scanner settings from file. |
![Public Method](dotnetimages/publicMethod.png) | OpenDataSourceManager | Opens the Source Manager. Use this method only to set the Data Source without using the SelectSource method. |
![Public Method](dotnetimages/publicMethod.png) | OpenSession | Opens the Data Source Manager and Data Source, placing TwainPRO into the Capability Negotiation state. |
![Public Method](dotnetimages/publicMethod.png) | SaveSettings | Saves the scanner settings to file. |
![Public Method](dotnetimages/publicMethod.png) | 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. |
![Public Method](dotnetimages/publicMethod.png) | SetCapability | Sets a TWAIN capability using the specified values. |
![Public Method](dotnetimages/publicMethod.png) | 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. |
![Public Method](dotnetimages/publicMethod.png) | 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