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 開始搜尋下一個拼字錯誤。

傳回

Int32

在文字方塊的內容中,下一個拼字錯誤開頭的字元索引。如果沒有下一個拼字錯誤存在,則為 -1。

適用於

另請參閱