This topic has not yet been rated - Rate this topic

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.

PropertyDescription

DocumentRange

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

SupportedTextSelection

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

 

 

Send comments about this topic to Microsoft

Build date: 11/28/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.