RichTextBox.GetSpellingErrorRange(TextPointer) 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.
Renvoie un TextRange objet couvrant tout mot mal orthographié à une position spécifiée dans le contenu du RichTextBox.
public:
System::Windows::Documents::TextRange ^ GetSpellingErrorRange(System::Windows::Documents::TextPointer ^ position);
public System.Windows.Documents.TextRange GetSpellingErrorRange(System.Windows.Documents.TextPointer position);
member this.GetSpellingErrorRange : System.Windows.Documents.TextPointer -> System.Windows.Documents.TextRange
Public Function GetSpellingErrorRange (position As TextPointer) As TextRange
Paramètres
- position
- TextPointer
Qui TextPointer spécifie une position et une direction logique qui se résout en un caractère pour examiner une erreur d’orthographe. Utilisez la LogicalDirection propriété de cette TextPointer propriété pour spécifier la direction du caractère à examiner.
Retours
Objet TextRange couvrant tout mot mal orthographié qui inclut le caractère spécifié par position, ou null s’il n’existe aucune erreur orthographique au caractère spécifié.
Remarques
Un TextPointer type semblable position spécifie généralement une position entre deux caractères. Utilisez la propriété de position spécifier le LogicalDirection caractère à examiner.