Back to API Reference
Struct

TextSnapshot

sealed

Immutable rendered Unicode text and the revision that owns its coordinates.

public TextRevision Revision{ get }

The revision that must accompany ranges computed from this text.

public ReadOnlyMemory<char> Text{ get }

Rendered UTF-16 text with source markup removed.

public int CodepointCount{ get }

Number of Unicode codepoints addressable by TextRange.

public bool IsValid{ get }

Whether this snapshot came from a completed parse.

public override string ToString()