TextBox.GetNextSpellingErrorCharacterIndex(Int32, LogicalDirection) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳文字框內容中下一個拼寫錯誤的起始字元索引。
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。