ITextProvider Interface

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:
© 2016 Microsoft