UIAutomation.UiaTextPattern.RangeFromChild C# (CSharp) Method

RangeFromChild() public method

public RangeFromChild ( IUiElement childElement ) : UIANET::System.Windows.Automation.Text.TextPatternRange
childElement IUiElement
return UIANET::System.Windows.Automation.Text.TextPatternRange
        public virtual classic.Text.TextPatternRange RangeFromChild(IUiElement childElement)
        {
//            if (childElement == null) {
//                throw new ArgumentNullException("childElement");
//            }
//            SafeTextRangeHandle hTextRange = UiaCoreApi.TextPattern_RangeFromChild(this._hPattern, childElement.RawNode);
//            return TextPatternRange.Wrap(hTextRange, this);
            // 20140102
            // return this._textPattern.RangeFromChild(childElement.GetSourceElement());
            return _textPattern.RangeFromChild(childElement.GetSourceElement() as classic.AutomationElement);
        }
        public virtual classic.Text.TextPatternRange RangeFromPoint(Point screenLocation)