Gets or sets the element at the given index.
Syntax
'Declaration
Public Default Property Item( _
ByVal As Integer _
) As Integer
'Usage
Dim instance As IntegerCollection
Dim index As Integer
Dim value As Integer
instance.Item(index) = value
value = instance.Item(index)
public int this[
int
]; {get; set;}
public: __property int get_Item int
;
public: __property void set_Item int ,
int
;
public:
property int default [int] {
int get(int );
void set (int , int value);
}
Parameters
- index
-
The zero-based index in the collection to get or set.
See Also