通过


RichTextBox.GetSpellingError(TextPointer) 方法

定义

返回一个 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指定要检查的字符。

适用于

另请参阅