UIAutomation.UiaTextPattern.RangeFromPoint C# (CSharp) Method

RangeFromPoint() public method

public RangeFromPoint ( Point screenLocation ) : UIANET::System.Windows.Automation.Text.TextPatternRange
screenLocation Point
return UIANET::System.Windows.Automation.Text.TextPatternRange
        public virtual classic.Text.TextPatternRange RangeFromPoint(Point screenLocation)
        {
//            Rect rect = (Rect)this._element.GetCurrentPropertyValue(AutomationElement.BoundingRectangleProperty);
//            if (screenLocation.X < rect.Left || screenLocation.X >= rect.Right || screenLocation.Y < rect.Top || screenLocation.Y >= rect.Bottom) {
//                throw new ArgumentException(SR.Get("ScreenCoordinatesOutsideBoundingRect"));
//            }
//            SafeTextRangeHandle hTextRange = UiaCoreApi.TextPattern_RangeFromPoint(this._hPattern, screenLocation);
//            return TextPatternRange.Wrap(hTextRange, this);
            return _textPattern.RangeFromPoint(screenLocation);
        }
//        static internal object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached)