語言

TextBox.GetNextSpellingErrorCharacterIndex(Int32, LogicalDirection) 方法

定義

回傳文字框內容中下一個拼寫錯誤的起始字元索引。

public:
 int GetNextSpellingErrorCharacterIndex(int charIndex, System::Windows::Documents::LogicalDirection direction);
public int GetNextSpellingErrorCharacterIndex(int charIndex, System.Windows.Documents.LogicalDirection direction);
member this.GetNextSpellingErrorCharacterIndex : int * System.Windows.Documents.LogicalDirection -> int
Public Function GetNextSpellingErrorCharacterIndex (charIndex As Integer, direction As LogicalDirection) As Integer

參數

charIndex
Int32

以零為基礎的字元索引,指示搜尋下一個拼字錯誤的位置。

direction
LogicalDirection

LogicalDirection其中一個值指定從指定的 charIndex開始搜尋下一個拼寫錯誤的方向。

傳回

文字框內容中下一個拼字錯誤開頭的字元索引,若沒有下一個拼字錯誤則為 -1。

適用於

另請參閱