ITextProvider Interface

Definition

Exposes methods and properties to support UI Automation client access to controls that contain text.

C#
[System.Runtime.InteropServices.ComVisible(true)]
[System.Runtime.InteropServices.Guid("3589c92c-63f3-4367-99bb-ada653b77cf2")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface ITextProvider
C#
public interface ITextProvider
Attributes

Remarks

Implemented on a UI Automation provider that must support the TextPattern control pattern.

Properties

DocumentRange

Gets a text range that encloses the main text of a document.

SupportedTextSelection

Gets a value that specifies whether a text provider supports selection and, if so, the type of selection supported.

Methods

GetSelection()

Retrieves a collection of disjoint text ranges associated with the current text selection or selections.

GetVisibleRanges()

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.

RangeFromChild(IRawElementProviderSimple)

Retrieves a text range enclosing a child element such as an image, hyperlink, or other embedded object.

RangeFromPoint(Point)

Returns the degenerate (empty) text range nearest to the specified screen coordinates.

Applies to

Tuote Versiot
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

See also