Skip to main content

TextRange Structure

References a portion of a text buffer.

Definition

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

public readonly struct TextRange : IEquatable<TextRange>
View Source
InheritanceObjectValueType → TextRange
ImplementsIEquatable(TextRange)

Constructors

TextRange(Int32, Int32)Initializes a new instance of the TextRange class

Properties

EndGets the end.
LengthGets the length.
StartGets the start.

Methods

GetType()Gets the Type of the current instance.
(Inherited from Object)
Skip(Int32)Bypasses a specified number of elements in the slice and then returns the remaining elements.
Take(Int32)Returns a specified number of contiguous elements from the start of the slice.

See Also

Reference

Avalonia.Media.TextFormatting Namespace