TextBox.GetNextSpellingErrorCharacterIndex(Int32, LogicalDirection) 方法

定义

返回文本框的内容中下一个拼写错误的起始字符索引。Returns the beginning character index for the next spelling error in the contents of the text box.

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

从零开始的字符索引,指示要从其开始搜索下一个拼写错误的位置。The zero-based character index indicating a position from which to search for the next spelling error.

direction
LogicalDirection

LogicalDirection 值之一,该值指定从指定 charIndex 开始搜索下一个拼写错误的方向。One of the LogicalDirection values that specifies the direction in which to search for the next spelling error, starting at the specified charIndex.

返回

文本框的内容中下一个拼写错误的起始位置的字符索引;或者,如果不存在下一个拼写错误,则为 -1。The character index for the beginning of the next spelling error in the contents of the text box, or -1 if no next spelling error exists.

适用于

另请参阅