TextRange Struct

Summary

References a portion of a text buffer.
Namespace
Avalonia.Media.TextFormatting
Base Types
  • object
  • ValueType
graph BT Type-->Base0["ValueType"] Base0-->Base1["object"] Type["TextRange"] class Type type-node

Syntax

public readonly struct TextRange : ValueType

Constructors

Name Summary
TextRange(int, int)

Properties

Name Value Summary
End int
Gets the end.
Length int
Gets the length.
Start int
Gets the start.

Methods

Name Value Summary
Skip(int) TextRange
Bypasses a specified number of elements in the slice and then returns the remaining elements.
Take(int) TextRange
Returns a specified number of contiguous elements from the start of the slice.