Share via


ITextChildProvider Interface

Definition

Provides access to a text-based control that is a child of another text-based control. Implement this interface in order to support the capabilities that an automation client requests with a AutomationPeer.GetPattern call and PatternInterface.TextChild.

public interface class ITextChildProvider
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(2087904607, 63325, 21794, 174, 181, 193, 248, 44, 50, 147, 59)]
struct ITextChildProvider
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
[Windows.Foundation.Metadata.Guid(2087904607, 63325, 21794, 174, 181, 193, 248, 44, 50, 147, 59)]
public interface ITextChildProvider
Public Interface ITextChildProvider
Attributes

Remarks

This pattern has guidelines and conventions that aren't fully documented here. For more info on what this pattern is for, see TextChild Control Pattern.

ITextChildProvider isn't implemented by any existing Windows Runtime automation peers. The interface exists so that custom control authors can support the automation pattern in a custom control, and implement their automation support using the same Windows Runtime managed or C++ API as they use to define control logic or other automation support.

The ITableItemProvider pattern doesn't have a pattern property identifier class.

Properties

TextContainer

Gets this element's nearest ancestor provider that supports the Text (ITextProvider) control pattern.

TextRange

Gets a text range that encloses this child element.

Applies to

See also