Redigera

Dela via


ITextProvider Interface

Definition

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

public interface class ITextProvider
[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
public interface ITextProvider
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Runtime.InteropServices.Guid("3589c92c-63f3-4367-99bb-ada653b77cf2")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type ITextProvider = interface
type ITextProvider = interface
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

See also