public ISelection GetSelectionAt(int offset) { foreach (ISelection s in selectionCollection) { if (s.ContainsOffset(offset)) { return s; } } return null; }