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 Current{ get }

Selection state after the change.

public string UserEvent{ get }

Hierarchical category string. See remarks for standard values.

[ctor]public SelectionChangedArgs()