Click or drag to resize

DeviceCollection Class

Contains a collection of all Device objects on the system.

Inheritance Hierarchy

Namespace:  Atalasoft.Twain
Assembly:  Atalasoft.DotTwain (in Atalasoft.DotTwain.dll) Version: (.NET 4.5.2, x86)
public sealed class DeviceCollection : ReadOnlyCollectionBase

The DeviceCollection type exposes the following members.

Public propertyCount
Gets the number of elements contained in the ReadOnlyCollectionBase instance.
(Inherited from ReadOnlyCollectionBase.)
Public propertyCode exampleDefault
Gets the system default device.
Public propertyItem
Gets a Device from the collection at the specified index.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetDevice
Returns a specific Device object.
Public methodGetEnumerator
Returns an enumerator that iterates through the ReadOnlyCollectionBase instance.
(Inherited from ReadOnlyCollectionBase.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodScanForChanges
Checks the system for any device changes and regenerates the collection.
Public methodToString
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.

See Also