Back to API Reference
Class
SeparatorModifier
Inherits:RangeCollectingModifier
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.
Remarks
Pair with a SeparatorParseRule, which inserts the separator string and marks its range: uniText.AddStyle(new Style { Modifier = new SeparatorModifier(), Rule = new SeparatorParseRule() }).
