This documentation is archived and is not being maintained.

ITextProvider Members

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

The ITextProvider type exposes the following members.

Public method GetSelection Retrieves a collection of disjoint text ranges associated with the current text selection or selections.
Public method 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.
Public method RangeFromChild Retrieves a text range enclosing a child element such as an image, hyperlink, or other embedded object.
Public method RangeFromPoint Returns the degenerate (empty) text range nearest to the specified screen coordinates.

Public property DocumentRange Gets a text range that encloses the main text of a document.
Public property SupportedTextSelection Gets a value that specifies whether a text provider supports selection and, if so, the type of selection supported.