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 不存在下一个拼写错误。

适用于

另请参阅