Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ITextProvider Interface

 

Exposes methods and properties to support UI Automation client access to controls that contain text.

Namespace:   System.Windows.Automation.Provider
Assembly:  UIAutomationProvider (in UIAutomationProvider.dll)

<ComVisibleAttribute(True)>
<GuidAttribute("3589c92c-63f3-4367-99bb-ada653b77cf2")>
<InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)>
Public Interface ITextProvider

NameDescription
System_CAPS_pubpropertyDocumentRange

Gets a text range that encloses the main text of a document.

System_CAPS_pubpropertySupportedTextSelection

Gets a value that specifies whether a text provider supports selection and, if so, the type of selection supported.

NameDescription
System_CAPS_pubmethodGetSelection()

Retrieves a collection of disjoint text ranges associated with the current text selection or selections.

System_CAPS_pubmethodGetVisibleRanges()

Retrieves an array of disjoint text ranges from a text container where each text range begins with the first partially visible line through to the end of the last partially visible line.

System_CAPS_pubmethodRangeFromChild(IRawElementProviderSimple)

Retrieves a text range enclosing a child element such as an image, hyperlink, or other embedded object.

System_CAPS_pubmethodRangeFromPoint(Point)

Returns the degenerate (empty) text range nearest to the specified screen coordinates.

Implemented on a UI Automation provider that must support the TextPattern control pattern.

.NET Framework
Available since 3.0
Silverlight
Available since 4.0
Windows Phone Silverlight
Available since 7.1
Return to top
Show:
© 2017 Microsoft