RichTextBox.GetSpellingError(TextPointer) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回一个 SpellingError 对象,该对象与指定位置处的指定位置处 RichTextBox的任何拼写错误相关联的对象。
public:
System::Windows::Controls::SpellingError ^ GetSpellingError(System::Windows::Documents::TextPointer ^ position);
public System.Windows.Controls.SpellingError GetSpellingError(System.Windows.Documents.TextPointer position);
member this.GetSpellingError : System.Windows.Documents.TextPointer -> System.Windows.Controls.SpellingError
Public Function GetSpellingError (position As TextPointer) As SpellingError
参数
- position
- TextPointer
一 TextPointer 个指定一个位置和逻辑方向,该方向解析为要检查拼写错误的字符。 使用此属性LogicalDirectionTextPointer可指定要检查的字符方向。
返回
一个 SpellingError 对象,其中包含在指定 position字符处找到的拼写错误的详细信息,或者 null 指定字符中不存在拼写错误。
注解
类似于TextPointerposition通常指定两个字符之间的位置。 使用属性LogicalDirectionposition指定要检查的字符。