ITextProvider Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈