public void GetSelectionRange(ref int start, ref int end) { if (end < start) { var temp = start; start = end; end = temp; } }