ITextProvider Interface
Définition
Expose des méthodes et des propriétés pour prendre en charge l’accès client UI Automation aux contrôles qui contiennent du texte.Exposes methods and properties to support UI Automation client access to controls that contain text.
public interface class 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)]
public interface ITextProvider
type ITextProvider = interface
[<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
Public Interface ITextProvider
- Attributs
Remarques
Implémenté sur un fournisseur UI Automation qui doit prendre en charge le TextPattern modèle de contrôle.Implemented on a UI Automation provider that must support the TextPattern control pattern.
Propriétés
DocumentRange |
Obtient une plage de texte qui englobe le texte principal d'un document.Gets a text range that encloses the main text of a document. |
SupportedTextSelection |
Obtient une valeur qui spécifie si un fournisseur de texte prend en charge la sélection et, si c'est le cas, le type de sélection pris en charge.Gets a value that specifies whether a text provider supports selection and, if so, the type of selection supported. |
Méthodes
GetSelection() |
Récupère une collection de plages de texte disjointes associées à la sélection ou aux sélections de texte actuelles.Retrieves a collection of disjoint text ranges associated with the current text selection or selections. |
GetVisibleRanges() |
Récupère un tableau de plages de texte disjointes à partir d'un conteneur de texte où chaque plage de texte commence à la première ligne partiellement visible et se termine à la dernière ligne partiellement visible.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) |
Récupère une plage de texte englobant un élément enfant tel qu’une image, un lien hypertexte ou un autre objet incorporé.Retrieves a text range enclosing a child element such as an image, hyperlink, or other embedded object. |
RangeFromPoint(Point) |
Retourne la plage de texte dégénérée (vide) la plus proche des coordonnées d'écran spécifiées.Returns the degenerate (empty) text range nearest to the specified screen coordinates. |
S’applique à
Voir aussi
- TextPattern
- Vue d'ensemble des modèles de contrôle UI AutomationUI Automation Control Patterns Overview
- Implémentation du fournisseur UI Automation côté serveurServer-side UI Automation Provider Implementation
- Implémentation du fournisseur UI Automation côté clientClient-side UI Automation Provider Implementation
- Prendre en charge des modèles de contrôle dans un fournisseur UI AutomationSupport Control Patterns in a UI Automation Provider
- Vue d'ensemble de TextPattern d'UI AutomationUI Automation TextPattern Overview