Spread Windows Forms 10.0 Product Documentation
Item Property (CollectionBase<T>)


The zero-based index of the collection to access.
Gets or sets the T at the specified index in the collection.
Syntax
'Declaration
 
Public Default Property Item( _
   ByVal index As Integer _
) As T
'Usage
 
Dim instance As CollectionBase(Of T)
Dim index As Integer
Dim value As T
 
instance.Item(index) = value
 
value = instance.Item(index)
public T this[ 
   int index
]; {get; set;}

Parameters

index
The zero-based index of the collection to access.

Property Value

A T at each valid index.
Exceptions
ExceptionDescription
System.ArgumentOutOfRangeException The index parameter is outside the valid range of indexes for the collection.
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

CollectionBase<T> Class
CollectionBase<T> Members

 

 


Copyright © GrapeCity, inc. All rights reserved.