通过


RichTextBox.GetSpellingErrorRange(TextPointer) 方法

定义

返回一个 TextRange 对象,该对象覆盖内容中 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

参数

position
TextPointer

TextPointer 个指定一个位置和逻辑方向,该方向解析为要检查拼写错误的字符。 使用此属性LogicalDirectionTextPointer可指定要检查的字符方向。

返回

覆盖 TextRange 包含指定 position字符的任何拼写错误的单词的对象,或者 null 指定字符中不存在拼写错误。

注解

类似于TextPointerposition通常指定两个字符之间的位置。 使用属性LogicalDirectionposition指定要检查的字符。

适用于

另请参阅