Skip to content

TextPointer class

Defined in

Namespace: CrissCross.Avalonia.UI.Controls Assembly: CrissCross.Avalonia.UI.dll Full name: CrissCross.Avalonia.UI.Controls.TextPointer Modifiers: public sealed

Summary

Represents a caret or selection location within a FlowDocument.

Applies to

net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net471

Class hierarchy
classDiagram
class TextPointer
class IComparable~TextPointer~ {
    <>
}
IComparable~TextPointer~ <|.. TextPointer

Implements: IComparable

Properties

NameSummary
DocumentGets the owning document.
OffsetGets the zero-based character offset.

Methods

NameSummary
GetPositionAtOffsetCreates a new pointer offset by the specified number of characters.
CompareTo
Equals
GetHashCode

Operators

NameSummary
static op_EqualityDetermines whether two pointers refer to the same position.
static op_InequalityDetermines whether two pointers refer to different positions.
static op_LessThanDetermines whether left precedes right.
static op_GreaterThanDetermines whether left follows right.
static op_LessThanOrEqualDetermines whether left precedes or equals right.
static op_GreaterThanOrEqualDetermines whether left follows or equals right.
Inherited members