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

The ITextProvider type exposes the following members.

  NameDescription
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.
Top

  NameDescription
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.
Top

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

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft