TextBox.GetSpellingError(Int32) 方法

定义

返回与指定字符索引处的任何拼写错误关联的 SpellingError 对象。Returns a SpellingError object associated with any spelling error at the specified character index.

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

内容中要检查是否存在拼写错误的位置的从零开始的字符索引。The zero-based character index of a position in content to examine for a spelling error.

返回

一个 SpellingError 对象,包含在 charIndex 指定的字符处所发现的拼写错误的详细信息,或如果在指定字符处没有拼写错误,则为 nullA SpellingError object containing the details of the spelling error found at the character indicated by charIndex, or null if no spelling error exists at the specified character.

适用于

另请参阅