.NET Matrix Library
SwapCols Method
See Also  Send Feedback



col1
An integer specifying the first column to swap.
col2
An integer specifying the second column to swap.
Swaps two matrix columns.

Syntax

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

Parameters

col1
An integer specifying the first column to swap.
col2
An integer specifying the second column to swap.

Exceptions

ExceptionDescription
IndexOutOfBoundsExceptionAny of col1, col2 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