Edytuj

Udostępnij za pośrednictwem


Span2D<T>.Slice(Int32, Int32, Int32, Int32) Method

Definition

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.

Applies to