次の方法で共有


ITextProvider Interface

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

Namespace:  System.Windows.Automation.Provider
Assembly:  System.Windows (in System.Windows.dll)

Syntax

'Declaration
Public Interface ITextProvider
public interface ITextProvider

The ITextProvider type exposes the following members.

Properties

  Name Description
Public propertySupported by Silverlight for Windows Phone DocumentRange Gets a text range that encloses the main text of a document.
Public propertySupported by Silverlight for Windows Phone SupportedTextSelection Gets a value that specifies whether a text provider supports selection, and if it does, the type of selection that is supported.

Top

Methods

  Name Description
Public methodSupported by Silverlight for Windows Phone GetSelection Retrieves a collection of disjoint text ranges that are associated with the current text selection or selections.
Public methodSupported by Silverlight for Windows Phone GetVisibleRanges Retrieves an array of disjoint text ranges from a text container. Each text range begins with the first partially visible line and ends with the last partially visible line.
Public methodSupported by Silverlight for Windows Phone RangeFromChild Retrieves a text range that encloses a child element, such as an image, hyperlink, or other embedded object.
Public methodSupported by Silverlight for Windows Phone RangeFromPoint Returns the degenerate (empty) text range that is nearest to the specified screen coordinates.

Top

Version Information

Silverlight

Supported in: 5, 4

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.