Span2D<T>.Slice(Int32, Int32, Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Slices the current instance with the specified parameters.
public CommunityToolkit.HighPerformance.Span2D<T> Slice (int row, int column, int height, int width);
member this.Slice : int * int * int * int -> CommunityToolkit.HighPerformance.Span2D<'T>
Public Function Slice (row As Integer, column As Integer, height As Integer, width As Integer) As Span2D(Of T)
Parameters
- row
- Int32
The target row to map within the current instance.
- column
- Int32
The target column to map within the current instance.
- height
- Int32
The height to map within the current instance.
- width
- Int32
The width to map within the current instance.
Returns
A new Span2D<T> instance representing a slice of the current one.
Exceptions
Thrown when either height
, width
or height
are negative or not within the bounds that are valid for the current instance.