public virtual string GetTextForReplace() { return Text; }
private void ApplyAutocomplete(Control control, AutocompleteItem item, Range fragment) { string newText = item.GetTextForReplace(); //replace text of fragment fragment.Text = newText; control.Focus(); }