PeachDrawing.Text

PeachDrawing.Text.Layout

TextRange Struct

A stretch of the text of a paragraph, by UTF-16 offsets.

public readonly record struct TextRange : System.IEquatable<PeachDrawing.Text.Layout.TextRange>

Implements System.IEquatable<TextRange>

Constructors  
TextRange(int, int) A stretch of the text of a paragraph, by UTF-16 offsets.
Properties  
End The offset just past the last character.
IsEmpty Whether the range holds no text.
Length The number of UTF-16 code units in the range.
Start The offset of the first character.
Methods  
Contains(int) Whether index is at or after the start and before the end.