VintaSoft Twain .NET SDK v10.2
Vintasoft.WpfTwain Namespace / DeviceCollection Class / Item Property
The zero-based index of the device to get.




In This Topic
    Item Property (DeviceCollection)
    In This Topic
    Gets the device at the specified index.
    Syntax
    'Declaration
     
    Public ReadOnly Default Property Item( _
       ByVal index As Integer _
    ) As Device
    'Usage
     
    Dim instance As DeviceCollection
    Dim index As Integer
    Dim value As Device
     
    value = instance.Item(index)
    public Device this[ 
       int index
    ]; {get;}
    public: __property Device* get_Item   int index
    ;
    public:
    property Device^ default [int] {
       Device^ get(int index);
    }

    Parameters

    index
    The zero-based index of the device to get.

    Property Value

    The device at the specified index.
    Exceptions
    ExceptionDescription
    index is less than zero or index is equal to or greater than System.Collections.ReadOnlyCollectionBase.Count.
    Requirements

    Target Platforms: Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server 2012, Windows Server 2008, Windows Server 2003

    See Also