Table of Contents

Namespace TextEdit.Core

Classes

PositionMap

Maps exact UTF-16 positions through a validated sequence of replacements.

TextChange

A recorded text replacement with shared, immutable inserted and removed content.

TextComposition

A view-owned provisional text root protected by one document input lease.

TextDocument

An independent plain-text document with persistent snapshots, atomic edits, shared sessions, and one history.

TextDocumentChangedEventArgs

A committed source transaction with exact recorded changes and a position map.

TextDocumentEdit

Builds sequential plain-text changes without mutating the live document.

TextEditResult

The outcome of a checked transaction. An accepted no-op has no change event.

TextEditorSession

Independent mutable selection and input state for one view of a shared source document.

TextInputContext

A synchronous input-rule callback's immutable input and proposed dependent changes.

TextInputPlan

A fully validated dependent input plan, ready to commit together with its originating input.

TextInputRules

Plans dependent text changes synchronously in ascending priority and registration order.

TextReplacement

A replacement in the coordinates of the snapshot supplied to an input rule.

TextSaveCapture

An immutable snapshot paired with the content state to acknowledge after a successful save.

TextSelection

A directional selection with an identity retained through edits.

TextSelectionSet

An immutable, normalized set of selections with one primary native selection.

TextSnapshot

An immutable text snapshot backed by a persistent balanced tree of bounded chunks.

TextTrackedPosition

A tracked exact UTF-16 position.

TextTrackedRange

A tracked exact UTF-16 range.

TextTracking

Creates disposable source anchors in a balanced interval index with lazy suffix shifts.

TextTrackingHandle

A disposable live source anchor. Invalidated handles do not revive on undo.

Structs

DocumentRevision

An opaque immutable revision of one document. The default value cannot authorize an edit.

PositionChange

One replacement's geometry, in coordinates after all preceding replacements.

TextEditOptions

History and application metadata for a source transaction.

TextLine

A source line excluding its terminator, together with the exact terminator length.

TextPosition

A zero-based logical line and UTF-16 column. Columns can address the interior of a CRLF terminator.

TextSelectionState

A directional selection expressed as zero-based UTF-16 anchor and active offsets.

TextSpan

A half-open range of UTF-16 code units.

Enums

CaretAffinity

The preferred visual edge at a wrap or bidirectional boundary.

PositionAffinity

Which side of inserted text retains an endpoint at the insertion boundary.

TextChangeOrigin

The cause of a committed source change.

TextEditRejection

An expected reason for rejecting a checked source edit.

TrackingDeletionBehavior

Whether deleting tracked source preserves its boundary or permanently invalidates the handle.