TextRange.

Take(int) Method

Summary

Returns a specified number of contiguous elements from the start of the slice.
Namespace
Avalonia.Media.TextFormatting
Containing Type
TextRange

Syntax

public TextRange Take(int length)

Parameters

Name Type Description
length int The number of elements to return.

Return Value

Type Description
TextRange A TextRange that contains the specified number of elements from the start of this slice.