ITextProvider.RangeFromPoint Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Returns the degenerate (empty) text range that is nearest to the specified screen coordinates.
Assembly: System.Windows (in System.Windows.dll)
Parameters
- screenLocation
- Type: System.Windows.Point
The location, in screen coordinates.
Return Value
Type: System.Windows.Automation.Provider.ITextRangeProviderA degenerate range nearest the specified location. This method never returns Nothing.
A text range that encloses a child object is returned if the screen coordinates are within the coordinates of an image, hyperlink, or other embedded object.
Because hidden text is not ignored by RangeFromPoint, this method returns a degenerate range from the visible text that is nearest the specified point.