IUIAutomationTextRange::GetText, méthode (uiautomationclient.h)
Retourne le texte brut de la plage de texte.
Syntaxe
HRESULT GetText(
[in] int maxLength,
[out, retval] BSTR *text
);
Paramètres
[in] maxLength
Type : int
Longueur maximale de la chaîne à retourner, ou -1 si aucune limite n’est requise.
[out, retval] text
Type : BSTR*
Reçoit un pointeur vers la chaîne, éventuellement tronqué au niveau du maxLength spécifié.
Valeur retournée
Type : HRESULT
Si cette méthode réussit, elle retourne S_OK. Sinon, elle retourne un code d’erreur HRESULT.
Spécifications
Client minimal pris en charge | Windows 7, Windows Vista avec SP2 et Platform Update pour Windows Vista, Windows XP avec SP3 et Platform Update pour Windows Vista [applications de bureau uniquement] |
Serveur minimal pris en charge | Windows Server 2008 R2, Windows Server 2008 avec SP2 et Mise à jour de plateforme pour Windows Server 2008, Windows Server 2003 avec SP2 et Mise à jour de plateforme pour Windows Server 2008 [applications de bureau uniquement] |
Plateforme cible | Windows |
En-tête | uiautomationclient.h (incluez UIAutomation.h) |
Voir aussi
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour