TextBox.GetSpellingErrorStart(Int32) 方法

定義

針對包含指定字元的任何拼字錯誤,傳回開頭字元索引。

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

內容中某個位置之以零為起始的字元索引,用以檢查拼字錯誤。

傳回

Int32

包含 charIndex 指定字元之任何拼字錯誤的開頭字元索引,如果指定的字元不屬於拼字錯誤,則為 -1。

適用於