ITextChildProvider interface

Provides access to a text-based control (or an object embedded in text) that is a child or descendant of another text-based control.

Methods

The ITextChildProvider interface has these methods.

Method Description
ITextChildProvider::get_TextContainer Retrieves this element's nearest ancestor provider that supports the Text control pattern.
ITextChildProvider::get_TextRange Retrieves a text range that encloses this child element.

Remarks

An element that implements the TextChild control pattern must be a child, or descendent, of an element that supports the Text control pattern.

It is not required that this element also implement the Text control pattern.

Requirements

   
Minimum supported client Windows 8 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 [desktop apps | UWP apps]
Target Platform Windows
Header uiautomationcore.h (include UIAutomation.h)

See Also

Text control pattern, TextChild control pattern, UI Automation Providers Overview