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