TextBox.GetSpellingErrorLength(Int32) 方法

定义

返回包括指定字符的任何拼写错误的长度。Returns the length of any spelling error that includes the specified character.

public:
 int GetSpellingErrorLength(int charIndex);
public int GetSpellingErrorLength (int charIndex);
member this.GetSpellingErrorLength : int -> int
Public Function GetSpellingErrorLength (charIndex As Integer) As Integer

参数

charIndex
Int32

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

返回

包括由 charIndex 所指定字符的任何拼写错误的长度;或者,如果指定字符不属于某个拼写错误,则为 0。The length of any spelling error that includes the character specified by charIndex, or 0 if the specified character is not part of a spelling error.

适用于