Back to API Reference
Struct

RangeSegment

sealed

One contiguous or point-like target of a range entity.

public RangeSegmentId Id{ get }

Stable identity within the owning range entity.

public TextRange Range{ get }

Rendered Unicode codepoint range.

public RangePointAffinity PointAffinity{ get }

Tracking side used when Range is a point.

public RangeTracking Tracking{ get }

Boundary and deletion tracking for non-point ranges.

public bool IsPoint{ get }

Whether this segment addresses a position instead of text content.

[ctor]public RangeSegment()

Creates one contiguous or point-like segment in rendered codepoint space.