ITextProvider2 interface (uiautomationcore.h)
Extends the ITextProvider interface to enable Microsoft UI Automation providers to expose textual content that is the target of an annotation, and information about a caret that belongs to the provider.
The ITextProvider2 interface inherits from ITextProvider. ITextProvider2 also has these types of members:
The ITextProvider2 interface has these methods.
Provides a zero-length text range at the location of the caret that belongs to the text-based control.
Exposes a text range that contains the text that is the target of the annotation associated with the specified annotation element.
|Minimum supported client||Windows 8 [desktop apps | UWP apps]|
|Minimum supported server||Windows Server 2012 [desktop apps | UWP apps]|
|Header||uiautomationcore.h (include UIAutomation.h)|