Version

IndexToSubscript Method

Returns the Matrix subscript that corresponds with the one-dimensional index.
Syntax
'Declaration
 
Public Shared Function IndexToSubscript( _
   ByVal index As Integer, _
   ByVal size As Vector _
) As Integer()
public static int[] IndexToSubscript( 
   int index,
   Vector size
)

Parameters

index
The one-dimensional Matrix index.
size
The dimensions of a Matrix.

Return Value

The multi-dimensional subscript that corresponds to the one-dimensional index.
Exceptions
ExceptionDescription
System.ArgumentException Occurs when size is empty.
System.ArgumentExceptionOccurs when the index it out of the bounds specified by the size Vector.
System.ArgumentException Occurs when a dimensions is less than 1.
System.ArgumentException Occurs when the size Vector has non-integer elements.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also