RangeFromChild Method
Collapse the table of content
Expand the table of content

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)

ITextRangeProvider RangeFromChild(
	IRawElementProviderSimple childElement
)

Parameters

childElement
Type: System.Windows.Automation.Provider.IRawElementProviderSimple
The enclosed object.

Return Value

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

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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft