Skip to main content

Take Method

Returns a specified number of contiguous elements from the start of the slice.

Definition

Namespace: Avalonia.Media.TextFormatting
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public TextRange Take(
int length
)

Parameters

  Int32
The number of elements to return.

Return Value

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

See Also

Reference

TextRange Structure
Avalonia.Media.TextFormatting Namespace