AtspiUiaSource.TextSource.RangeFromPoint C# (CSharp) Method

RangeFromPoint() public method

public RangeFromPoint ( Point screenLocation ) : ITextPatternRange
screenLocation Point
return ITextPatternRange
		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);
		}
	}