ITextProvider.RangeFromChild Method

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Retrieves a text range that encloses a child element, such as an image, hyperlink, or other embedded object.

Namespace:  System.Windows.Automation.Provider
Assembly:  System.Windows (in System.Windows.dll)

Syntax

Function RangeFromChild ( _
    childElement As IRawElementProviderSimple _
) As ITextRangeProvider
ITextRangeProvider RangeFromChild(
    IRawElementProviderSimple childElement
)

Parameters

Return Value

Type: System.Windows.Automation.Provider..::.ITextRangeProvider
A range that spans the child element.

Remarks

A UI Automation provider should check that the passed element is a child of the text container.

If there is no text in the range where the child element exists, a degenerate (empty) range is returned.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Platforms

Windows Phone

See Also

Reference

ITextProvider Interface

System.Windows.Automation.Provider Namespace

ITextRangeProvider