Array2DTSlice(Int32, Int32) Method

Gets a new Array2DT instance, which represents a subrange of rows of the current instance indicated by the specified startRowIndex and rowCount.

Definition

Namespace: KGySoft.Collections
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
public Array2D<T> Slice(
	int startRowIndex,
	int rowCount
)

Parameters

startRowIndex  Int32
The offset that points to the first row of the returned Array2DT.
rowCount  Int32
The desired number of rows of the returned Array2DT.

Return Value

Array2DT
The subrange of rows of the current Array2DT instance indicated by the specified startRowIndex and rowCount.

Exceptions

ArgumentOutOfRangeExceptionstartRowIndex or rowCount is out of range.

See Also