RichStringScope
A DSL scope used to safely mutate the attributes of a RichString within an edit block. All mutations are accumulated internally and used to produce a completely new, immutable RichString instance when the block completes.
Note: This scope does not mutate the text itself. It is scoped exclusively to attribute operations.
Functions
Removes all attributes (both span and paragraph level) within the given range. Paragraph attributes will be cleared from their entire respective paragraphs.
Applies a set of attribute mutations to all specified ranges using a DSL builder.
Applies a set of attribute mutations to all specified runs using a DSL builder. The editAction receives each RichRun to allow conditional logic based on existing attributes.
Applies a set of attribute mutations to the specified range using a DSL builder.