Langue

ITextRangeProvider.Compare(ITextRangeProvider) Méthode

Définition

Retourne une valeur qui indique si l’étendue (le Start point de terminaison au End point de terminaison) d’une plage de texte est identique à une autre plage de texte.

public:
 bool Compare(System::Windows::Automation::Provider::ITextRangeProvider ^ range);
public bool Compare(System.Windows.Automation.Provider.ITextRangeProvider range);
abstract member Compare : System.Windows.Automation.Provider.ITextRangeProvider -> bool
Public Function Compare (range As ITextRangeProvider) As Boolean

Paramètres

range
ITextRangeProvider

Plage de texte à comparer.

Retours

true si l’étendue des deux plages de texte est identique ; sinon false.

Exceptions

Si la plage comparée ne provient pas du même fournisseur de texte.

S’applique à