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。