DeviceCollection Class |
Contains a collection of all Device objects on the system.
Namespace: Atalasoft.Twain
The DeviceCollection type exposes the following members.
| Name | Description | |
|---|---|---|
| Count | Gets the number of elements contained in the ReadOnlyCollectionBase instance. (Inherited from ReadOnlyCollectionBase.) | |
| Default | Gets the system default device. | |
| Item | Gets a Device from the collection at the specified index. |
| Name | Description | |
|---|---|---|
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| GetDevice | Returns a specific Device object. | |
| GetEnumerator | Returns an enumerator that iterates through the ReadOnlyCollectionBase instance. (Inherited from ReadOnlyCollectionBase.) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| ScanForChanges | Checks the system for any device changes and regenerates the collection. | |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |
This information can be used to look for a device which fits the needs of your application, or to create a custom interface for selecting a device instead of using the Twain dialog displayed by ShowSelectSource.