Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
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)

public interface ITextProvider

The ITextProvider type exposes the following members.

Public propertyDocumentRangeGets a text range that encloses the main text of a document.
Public propertySupportedTextSelectionGets a value that specifies whether a text provider supports selection and, if so, the type of selection supported.

Public methodGetSelectionRetrieves a collection of disjoint text ranges associated with the current text selection or selections.
Public methodGetVisibleRangesRetrieves 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.
Public methodRangeFromChildRetrieves a text range enclosing a child element such as an image, hyperlink, or other embedded object.
Public methodRangeFromPointReturns 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

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft