ReadOnlySlice<T>.

AsSlice(int, int) Method

Summary

Returns a sub slice of elements that start at the specified index and has the specified number of elements.
Namespace
Avalonia.Utilities
Containing Type
ReadOnlySlice<T>

Syntax

public ReadOnlySlice<T> AsSlice(int start, int length)

Parameters

Name Type Description
start int The start of the sub slice.
length int The length of the sub slice.

Return Value

Type Description
ReadOnlySlice<T> A ReadOnlySlice<T> that contains the specified number of elements from the specified start.