Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 2.08 KB

File metadata and controls

27 lines (18 loc) · 2.08 KB
-api-id -api-type
T:Microsoft.UI.Xaml.Automation.Provider.ITextProvider
winrt interface

Microsoft.UI.Xaml.Automation.Provider.ITextProvider

-description

Exposes methods and properties to support Microsoft UI Automation client access to controls that contain text. Implement this interface in order to support the capabilities that an automation client requests with a AutomationPeer.GetPattern call and PatternInterface.Text.

-remarks

For more info on this pattern, see Text and TextRange Control Patterns.

ITextProvider, ITextProvider2 and ITextRangeProvider aren't implemented by any existing Windows Runtime automation peers using this definition of the interface. The text models supported by Windows Runtime text controls such as TextBox and RichTextBlock do implement some of these patterns, but do so at a native level that doesn't appear in the Windows Runtime definitions of the API surface. For more info, see the peer classes for the various Windows Runtime text controls.

The Microsoft UI Automation interfaces within the Windows Runtime API exist 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 ITextProvider pattern doesn't have a Windows Runtime property identifier class.

-examples

-see-also

Text and TextRange Control Patterns, ITextProvider (COM interface), Custom automation peers