RichTextBox.GetSpellingErrorRange(TextPointer) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回一个 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指定要检查的字符。