.NET Matrix Library
Item Property
See Also  Send Feedback



index
A zero based index of the element to get or to set.
Gets or sets a single vector element.

Syntax

Visual Basic (Declaration) 
Public Default Property Item( _
   ByVal index As Integer _
) As Double
Visual Basic (Usage)Copy Code
Dim instance As Vector
Dim index As Integer
Dim value As Double
 
instance.Item(index) = value
 
value = instance.Item(index)
C# 
public double this( 
   int index
) {get; set;}
C++/CLI 
public:
property double default [int] {
   double get(intindex);
   void set (intindexdoublevalue);
}

Parameters

index
A zero based index of the element to get or to set.

Property Value

double value.

Exceptions

ExceptionDescription
IndexOutOfBoundsExceptionindex exceeds vector length.

Remarks

This is the default property of the Vector object when using it in Visual Basic. It is the indexer of the Vector object when used in C#.

Requirements

Target Platforms: Windows 2000, Windows XP, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7

See Also

.NET Matrix Library