.NET Matrix Library
SwapRows Method
See Also  Send Feedback



row1
An integer specifying the first row to swap.
row2
An integer specifying the second row to swap.
Swaps two matrix rows.

Syntax

Visual Basic (Declaration) 
Public Sub SwapRows( _
   ByVal row1 As Integer, _
   ByVal row2 As Integer _
) 
Visual Basic (Usage)Copy Code
Dim instance As Matrix
Dim row1 As Integer
Dim row2 As Integer
 
instance.SwapRows(row1, row2)
C# 
public void SwapRows( 
   int row1,
   int row2
)
C++/CLI 
public:
void SwapRows( 
   int row1,
   int row2
) 

Parameters

row1
An integer specifying the first row to swap.
row2
An integer specifying the second row to swap.

Exceptions

ExceptionDescription
IndexOutOfBoundsExceptionAny of row1, row2 exceeds matrix size.

Requirements

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

See Also

.NET Matrix Library