Back to API Reference
Struct
SelectionChangedArgs
sealed
Payload of SelectionChanged. Carries previous and current selection state plus a hierarchical UserEvent string that classifies the change (per revised D-002, CodeMirror 6 convention).
Remarks
Standard values are the SelectionChangeReason constants. New categories are just new strings — the struct is durable and never breaks subscribers, which can match a family by prefix (e.g. UserEvent.StartsWith("select.")).
public TextSelection Previous{ get }Selection state before the change.
public TextSelection Current{ get }Selection state after the change.
