Back to API Reference
Class
RangeCollectingModifier
abstract
Inherits:BaseModifier
Base for modifiers that collect codepoint ranges during apply and act on them in the Shaped phase — the channel through which a modifier influences wrapping. Subclasses implement ApplyRange.
Derived Types(2)
Types that inherit from RangeCollectingModifier.
CC
NoBreakModifier
Keeps the tagged range together as one word — no soft break is taken inside it.
SeparatorModifier
Keeps each run of text between tagged separators whole during word wrap: a segment either fits entirely on the current line or moves to a fresh line and the separator before it collapses. A segment wider than the text box wraps inside itself as usual, and the lines holding its fragments accept no further segments.
protected override void OnApply(in RangeApplyContext context)protected abstract void ApplyRange(UniTextBuffers buffers, TextRange range)Acts on one collected range in the Shaped phase — emit it to a line-breaker buffer, or edit its break opportunities.
