TextBox.GetSpellingErrorStart(Int32) 方法

定义

返回包括指定字符的任何拼写错误的起始字符索引。Returns the beginning character index for any spelling error that includes the specified character.

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

参数

charIndex
Int32

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

返回

包括由 charIndex 所指定字符的任何拼写错误的起始字符索引;或者,如果指定字符不是某个拼写错误的一部分,则为 -1。The beginning character index for any spelling error that includes the character specified by charIndex, or -1 if the specified character is not part of a spelling error.

适用于