ITextRangeProvider.FindText(String, Boolean, Boolean) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Retourne un sous-ensemble de la plage de texte qui contient le texte spécifié.
public:
System::Windows::Automation::Provider::ITextRangeProvider ^ FindText(System::String ^ text, bool backward, bool ignoreCase);
public System.Windows.Automation.Provider.ITextRangeProvider FindText (string text, bool backward, bool ignoreCase);
abstract member FindText : string * bool * bool -> System.Windows.Automation.Provider.ITextRangeProvider
Public Function FindText (text As String, backward As Boolean, ignoreCase As Boolean) As ITextRangeProvider
Paramètres
- text
- String
Chaîne de texte à rechercher.
- backward
- Boolean
true
si la dernière plage de texte doit être retournée à la place de la première ; sinon, false
.
- ignoreCase
- Boolean
true
si la casse doit être ignorée ; sinon, false
.
Retours
Plage de texte correspondant au texte spécifié ; sinon, null (Nothing
en Visual Basic).
Remarques
Il n’existe aucune distinction entre le texte masqué et le texte visible.
S’applique à
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de l’année 2024, nous abandonnerons progressivement le mécanisme de retour d’information GitHub Issues pour le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultez :Soumettre et afficher des commentaires pour