.NET Matrix Library
Item Property
See Also  Send comments on this topic


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
C# 
public double this( 
   int row,
   int col
) {get; set;}
C++/CLI 
public:
property double default [int,int] {
   double get(int rowint col);
   void set (int rowint coldouble value);
}

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

Platforms: Windows 7, Windows Vista, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows 2000

See Also

.NET Matrix Library Documentation