.NET Matrix Library
Item Property
See Also  Send Feedback



row
Specifies the row of the matrix element to get or to set.
col
Specifies the column of the matrix element to get or to set.
Gets or sets a single matrix element.

Syntax

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

Parameters

row
Specifies the row of the matrix element to get or to set.
col
Specifies the column of the matrix element to get or to set.

Property Value

A double value.

Exceptions

ExceptionDescription
IndexOutOfBoundsExceptionAny of row, col parameters exceeds matrix size.

Remarks

This is the default property of the Matrix object when using it in Visual Basic. It is the indexer of the Matrix 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