public override void MoveToNextWord() { _bufferPoint.MoveToNextWord(); // make sure the word structure navigator didn't return a position in the middle of a view element SnapshotPoint bufferPoint = _bufferPoint.AdvancedTextPoint; SnapshotSpan textElementSpan = _textView.AdvancedTextView.GetTextElementSpan(bufferPoint); if (bufferPoint > textElementSpan.Start) { this.MoveTo(textElementSpan.End); } }