Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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, 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.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.