public ITextPatternRange RangeFromPoint(Point screenLocation) { int offset = text.GetOffsetAtPoint((int)screenLocation.X, (int)screenLocation.Y, CoordType.Screen); // TODO: Check this behavior if (offset < 0) { return(null); } return(new TextRangePattern(accessible, offset, offset)); }