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, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Community Additions

© 2015 Microsoft