Expand Minimize

ITextProvider interface

Provides access to controls that contain text.

Members

The ITextProvider interface inherits from the IUnknown interface. ITextProvider also has these types of members:

Methods

The ITextProvider interface has these methods.

MethodDescription
GetSelection

Retrieves a collection of text ranges that represents the currently selected text in a text-based control.

GetVisibleRanges

Retrieves an array of disjoint text ranges from a text-based control where each text range represents a contiguous span of visible text.

RangeFromChild

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

RangeFromPoint

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

 

Properties

The ITextProvider interface has these properties.

PropertyAccess typeDescription

DocumentRange

Read-only

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

SupportedTextSelection

Read-only

Retrieves a value that specifies the type of text selection that is supported by the control.

 

Remarks

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

Requirements

Minimum supported client

Windows XP [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2003 [desktop apps | Windows Store apps]

Header

UIAutomationCore.h (include UIAutomation.h)

IDL

UIAutomationCore.idl

DLL

UIAutomationCore.dll

IID

IID_ITextProvider is defined as 5347ad7b-c355-46f8-aff5-909033582f63

See also

ITextProvider2
ITextRangeProvider
UI Automation Providers Overview

 

 

Community Additions

ADD
Show:
© 2014 Microsoft