public bool DeleteSelectedText() { if (SelectedText.IsEmpty) { return(false); } TextLines.DeleteInBounds(SelectedText); CurrentPosition = new TextPosition(SelectedText.RealStart); SelectedText.Invalidate(); return(true); }