C1.Win.C1Editor.4 Assembly > C1.Win.C1Editor Namespace > C1TextRange Class : Move Method |
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;