TextBox.GetSpellingError(Int32) 方法

定义

返回与 SpellingError 指定字符索引处的任何拼写错误关联的对象。

public:
 System::Windows::Controls::SpellingError ^ GetSpellingError(int charIndex);
public System.Windows.Controls.SpellingError GetSpellingError(int charIndex);
member this.GetSpellingError : int -> System.Windows.Controls.SpellingError
Public Function GetSpellingError (charIndex As Integer) As SpellingError

参数

charIndex
Int32

要检查拼写错误的内容的某个位置的从零开始的字符索引。

返回

一个 SpellingError 对象,其中包含在指定 charIndex字符处找到的拼写错误的详细信息,或者 null 指定字符中不存在拼写错误。

适用于

另请参阅