Parameters
- offset
- Specifies the number of characters to offset the current text range in relation to the current start of the range.
- length
- Specifies the new length of the range.
private void c1Editor1_SelectionChanged(object sender, EventArgs e) { if (_colored != null) { _colored.RemoveStyle("color", "yellow"); _colored = null; } C1TextRange sel = c1Editor1.Selection.Clone(); sel.Move(-1, 1); sel.ApplyStyle("color", "yellow", C1StyleType.Character); _colored = sel; } private C1TextRange _colored = null;