src\Framework\MS\Internal\PtsHost\TextParaClient.cs (24)
739RectFromDcpSimpleLines(0, 0, LogicalDirection.Forward, TextPointerContext.Text, ref textDetails.u.full, ref rect, ref vrBaseline);
744RectFromDcpCompositeLines(0, 0, LogicalDirection.Forward, TextPointerContext.Text, ref textDetails.u.full, ref rect, ref vrBaseline);
1245LogicalDirection logicalDirection = (charHit.TrailingLength > 0) ? LogicalDirection.Backward : LogicalDirection.Forward;
1890if (orientation == LogicalDirection.Forward)
1992if (orientation == LogicalDirection.Forward)
2254ITextPointer position = Paragraph.StructuralCache.TextContainer.CreatePointerAtOffset(Paragraph.ParagraphStartCharacterPosition + dcp, LogicalDirection.Forward);
2651else if (position.LogicalDirection == LogicalDirection.Forward)
2780else if (position.LogicalDirection == LogicalDirection.Forward)
2860else if (dcp >= lineDesc.dcpLim - 1 && direction == LogicalDirection.Forward)
2889if (direction == LogicalDirection.Forward)
2899if ((nextCharacterHit.FirstCharacterIndex + nextCharacterHit.TrailingLength == lineDesc.dcpLim) && direction == LogicalDirection.Forward)
2909logicalDirection = LogicalDirection.Forward;
2918logicalDirection = LogicalDirection.Forward;
2927logicalDirection = (nextCharacterHit.TrailingLength > 0) ? LogicalDirection.Backward : LogicalDirection.Forward;
3024else if (dcp >= element.dcpLim - 1 && direction == LogicalDirection.Forward)
3057if (direction == LogicalDirection.Forward)
3067if ((nextCharacterHit.FirstCharacterIndex + nextCharacterHit.TrailingLength == element.dcpLim) && direction == LogicalDirection.Forward)
3078logicalDirection = LogicalDirection.Forward;
3087logicalDirection = LogicalDirection.Forward;
3097logicalDirection = (nextCharacterHit.TrailingLength > 0) ? LogicalDirection.Backward : LogicalDirection.Forward;
3184logicalDirection = LogicalDirection.Forward;
3193logicalDirection = (backspaceCharacterHit.TrailingLength > 0) ? LogicalDirection.Backward : LogicalDirection.Forward;
3314logicalDirection = LogicalDirection.Forward;
3323logicalDirection = (backspaceCharacterHit.TrailingLength > 0) ? LogicalDirection.Backward : LogicalDirection.Forward;
src\Framework\MS\Internal\Text\ComplexLine.cs (13)
50switch (position.GetPointerContext(LogicalDirection.Forward))
292position = new TextPointer(_owner.ContentStart, CalcPositionOffset(charHit), LogicalDirection.Forward);
299type = position.GetPointerContext(LogicalDirection.Forward);
315element = position.GetAdjacentElementFromOuterPosition(LogicalDirection.Forward);
343Debug.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text, "TextPointer does not point to characters.");
363endOfRunPosition = _owner.Highlights.GetNextPropertyChangePosition(position, LogicalDirection.Forward);
378int charactersCopied = position.GetTextInRun(LogicalDirection.Forward, textBuffer, 0, textBuffer.Length);
391Debug.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart, "TextPointer does not point to element start edge.");
396TextElement element = (TextElement)position.GetAdjacentElement(LogicalDirection.Forward);
483Debug.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd, "TextPointer does not point to element end edge.");
487TextElement element = (TextElement)position.GetAdjacentElement(LogicalDirection.Forward);
533Debug.Assert(position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.EmbeddedElement, "TextPointer does not point to embedded object.");
536DependencyObject element = position.GetAdjacentElement(LogicalDirection.Forward) as DependencyObject;
src\Framework\System\Windows\Controls\TextBox.cs (18)
179TextPointer newStart = this.TextContainer.CreatePointerAtOffset(start, LogicalDirection.Forward);
183newStart = newStart.GetInsertionPosition(LogicalDirection.Forward);
191TextPointer newEnd = new TextPointer(newStart, length, LogicalDirection.Forward);
194newEnd = newEnd.GetInsertionPosition(LogicalDirection.Forward);
286TextPointer position = this.TextContainer.CreatePointerAtOffset(charIndex, LogicalDirection.Forward);
475textPointer = textPointer.GetNextInsertionPosition(LogicalDirection.Forward);
484textPointer = textPointer.GetPositionAtOffset(0, LogicalDirection.Forward);
511TextPointer position = this.TextContainer.CreatePointerAtOffset(charIndex, LogicalDirection.Forward);
512SpellingError spellingError = this.TextEditor.GetSpellingErrorAtPosition(position, LogicalDirection.Forward);
516position = this.TextContainer.CreatePointerAtOffset(charIndex + 1, LogicalDirection.Forward);
848TextPointer newEnd = new TextPointer(TextSelectionInternal.Start, value, LogicalDirection.Forward);
851newEnd = newEnd.GetInsertionPosition(LogicalDirection.Forward);
895TextPointer newStart = TextContainer.CreatePointerAtOffset(value, LogicalDirection.Forward);
899newStart = newStart.GetInsertionPosition(LogicalDirection.Forward);
907TextPointer newEnd = new TextPointer(newStart, selectionLength, LogicalDirection.Forward);
910newEnd = newEnd.GetInsertionPosition(LogicalDirection.Forward);
1474if (TextPointerBase.IsNextToPlainLineBreak(textPointer, LogicalDirection.Forward))
1476textPointer.MoveToNextInsertionPosition(LogicalDirection.Forward);
src\Framework\System\Windows\Controls\TextRangeAdaptor.cs (43)
542TextPointerBase.MoveToNextInsertionPosition(_end, LogicalDirection.Forward);
553MoveToNextWordBoundary(_end, LogicalDirection.Forward);
563TextPointerContext forwardContext = _start.GetPointerContext(LogicalDirection.Forward);
583TextPointerContext forwardContext = _end.GetPointerContext(LogicalDirection.Forward);
591_end.MoveToNextContextPosition(LogicalDirection.Forward);
597_start.SetLogicalDirection(LogicalDirection.Forward);
598_end.SetLogicalDirection(LogicalDirection.Forward);
773if (moved && direction == LogicalDirection.Forward)
777TextPointerContext context = position.GetPointerContext(LogicalDirection.Forward);
782position.MoveToNextContextPosition(LogicalDirection.Forward);
801if (direction == LogicalDirection.Forward)
819nextLineStart = GetInsertionPosition(nextLineStart, LogicalDirection.Forward);
824position.SetLogicalDirection(isStart ? LogicalDirection.Forward : LogicalDirection.Backward);
851position.SetLogicalDirection(isStart ? LogicalDirection.Forward : LogicalDirection.Backward);
864if (direction == LogicalDirection.Forward)
871if (nextParagraphStart.MoveToNextInsertionPosition(LogicalDirection.Forward))
881position.SetLogicalDirection(isStart ? LogicalDirection.Forward : LogicalDirection.Backward);
902position.SetLogicalDirection(isStart ? LogicalDirection.Forward : LogicalDirection.Backward);
931if (direction == LogicalDirection.Forward)
935if (position.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.ElementEnd)
941Invariant.Assert(position.MoveToNextContextPosition(LogicalDirection.Forward));
943MoveToInsertionPosition(position, LogicalDirection.Forward);
965if (direction == LogicalDirection.Forward)
975if (position.CompareTo(GetInsertionPosition(position.TextContainer.Start, LogicalDirection.Forward)) != 0)
1005LogicalDirection direction = (count > 0) ? LogicalDirection.Forward : LogicalDirection.Backward;
1086position.SetLogicalDirection(LogicalDirection.Forward);
1108MoveToInsertionPosition(position, LogicalDirection.Forward);
1123position.MoveToPosition(direction == LogicalDirection.Forward ? paragraphRange.End : paragraphRange.Start);
1162MoveToInsertionPosition(position, LogicalDirection.Forward);
1174if (direction == LogicalDirection.Forward)
1207return (direction == LogicalDirection.Forward) ? moved : -moved;
1222while (IsElementBoundary(start.GetPointerContext(LogicalDirection.Forward)))
1224if (!start.MoveToNextContextPosition(LogicalDirection.Forward) || start.CompareTo(end) >= 0)
1246if (!start.MoveToNextContextPosition(LogicalDirection.Forward) || start.CompareTo(end) > 0)
1457return TextPointerBase.IsAtWordBoundary(position, LogicalDirection.Forward);
1491position.SetLogicalDirection(LogicalDirection.Forward);
1655_end.MoveToNextInsertionPosition(LogicalDirection.Forward);
1711attrStart = position.CreatePointer(LogicalDirection.Forward);
1724ITextPointer position = _start.CreatePointer(LogicalDirection.Forward);
1735attrStart = position.CreatePointer(LogicalDirection.Forward);
1746if (!position.MoveToNextContextPosition(LogicalDirection.Forward))
1932_end.MoveToNextInsertionPosition(LogicalDirection.Forward);
1970if (MoveToUnitBoundary(position, start, count < 0 ? LogicalDirection.Backward : LogicalDirection.Forward, unit))
src\Framework\System\Windows\Documents\FixedDocument.cs (11)
535fixedTextPointer = new FixedTextPointer(true, LogicalDirection.Forward, flowPosition);
1116if (!highlights.IsContentHighlighted(highlightTransitionPosition, LogicalDirection.Forward))
1118highlightTransitionPosition = highlights.GetNextHighlightChangePosition(highlightTransitionPosition, LogicalDirection.Forward);
1129selected = highlights.GetHighlightValue(highlightTransitionPosition, LogicalDirection.Forward, typeof(TextSelection));
1147highlightTransitionPosition = highlights.GetNextHighlightChangePosition(highlightTransitionPosition, LogicalDirection.Forward);
1150while (highlights.GetHighlightValue(highlightTransitionPosition, LogicalDirection.Forward, typeof(TextSelection)) != DependencyProperty.UnsetValue);
1159LogicalDirection.Forward, typeof(HighlightComponent)) as AnnotationHighlightLayer.HighlightSegment;
1163highlightTransitionPosition = highlights.GetNextHighlightChangePosition(highlightTransitionPosition, LogicalDirection.Forward);
1174this.FixedContainer.GetMultiHighlights((FixedTextPointer)highlightRangeStart.CreateDynamicTextPointer(LogicalDirection.Forward),
1175(FixedTextPointer)highlightTransitionPosition.CreateDynamicTextPointer(LogicalDirection.Forward),
1485return new FixedTextPointer(true, LogicalDirection.Forward, flowPosition);
src\Framework\System\Windows\Documents\FixedFindEngine.cs (6)
158start = new DocumentSequenceTextPointer(childBlock, new FixedTextPointer(false, LogicalDirection.Forward, fixedDoc.FixedContainer.FixedTextBuilder.GetPageStartFlowPosition(translatedPageNumber)));
162start = new DocumentSequenceTextPointer(childBlock, new FixedTextPointer(false, LogicalDirection.Forward, fixedDoc.FixedContainer.FixedTextBuilder.GetPageStartFlowPosition(translatedPageNumber)));
173start = new FixedTextPointer(false, LogicalDirection.Forward, textBuilder.GetPageStartFlowPosition(pageNumber));
177start = new FixedTextPointer(false, LogicalDirection.Forward, textBuilder.GetPageStartFlowPosition(pageNumber));
311new FixedTextPointer(false, LogicalDirection.Forward,pageStartFlowPosition));
317firstSearchPageStart = new FixedTextPointer(false, LogicalDirection.Forward, endAsFTP.FixedTextContainer.FixedTextBuilder.GetPageStartFlowPosition(pageNumber));
src\Framework\System\Windows\Documents\Speller.cs (21)
217ExpandToWordBreakAndContext(error.End, LogicalDirection.Forward, language, out contentEnd, out contextEnd);
264if (_statusTable.GetError(pointer, LogicalDirection.Forward, out errorStart, out errorEnd))
274pointer = _statusTable.GetNextErrorTransition(pointer, LogicalDirection.Forward);
732end = GetNextLanguageTransition(start, LogicalDirection.Forward, language, end);
779wordBreakRight = SearchForWordBreaks(caretPosition, LogicalDirection.Forward, language, 1, false /* stopOnError */);
870ExpandToWordBreakAndContext(end, LogicalDirection.Forward, language, out contentEnd, out contextEnd);
1200inwardDirection = direction == LogicalDirection.Forward ? LogicalDirection.Backward : LogicalDirection.Forward;
1417closestErrorPosition = nextErrorTransition.CreateDynamicTextPointer(LogicalDirection.Forward);
1431direction == LogicalDirection.Forward && closestErrorPosition.CompareTo(searchPosition) < 0)
1442direction == LogicalDirection.Forward && closestLanguageTransition.CompareTo(searchPosition) < 0)
1475while ((direction == LogicalDirection.Forward && navigator.CompareTo(haltPosition) < 0) ||
1485if ((direction == LogicalDirection.Forward && navigator.CompareTo(haltPosition) > 0) ||
1568if (direction == LogicalDirection.Forward)
1817switch (position.GetPointerContext(LogicalDirection.Forward))
1820runCount = position.GetTextRunLength(LogicalDirection.Forward);
1824position.GetTextInRun(LogicalDirection.Forward, _text, _textLength, runCount);
1860position.MoveToNextContextPosition(LogicalDirection.Forward);
1868position.MoveToNextContextPosition(LogicalDirection.Forward);
1935context = pointer.GetPointerContext(LogicalDirection.Forward);
1938TextSchema.IsFormattingType(pointer.GetElementType(LogicalDirection.Forward)))
src\Framework\System\windows\Documents\TextEditorSelection.cs (43)
136ITextPointer lineStart = position.CreatePointer(LogicalDirection.Forward);
211LogicalDirection movementDirection = IsFlowDirectionRightToLeftThenTopToBottom(This) ? LogicalDirection.Backward : LogicalDirection.Forward;
227LogicalDirection movementDirection = IsFlowDirectionRightToLeftThenTopToBottom(This) ? LogicalDirection.Forward : LogicalDirection.Backward;
244LogicalDirection movementDirection = IsFlowDirectionRightToLeftThenTopToBottom(This) ? LogicalDirection.Backward : LogicalDirection.Forward;
260LogicalDirection movementDirection = IsFlowDirectionRightToLeftThenTopToBottom(This) ? LogicalDirection.Forward : LogicalDirection.Backward;
336ITextPointer nextPosition = lineEndPosition.GetNextInsertionPosition(LogicalDirection.Forward);
487if (movingPointer.MoveToNextInsertionPosition(LogicalDirection.Forward))
827ITextPointer caretPosition = lineRange.Start.GetFrozenPointer(LogicalDirection.Forward);
830This.Selection.SetCaretToPosition(caretPosition, LogicalDirection.Forward, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/true);
876LogicalDirection orientation = TextPointerBase.IsNextToPlainLineBreak(lineRange.End, LogicalDirection.Backward) ? LogicalDirection.Forward : LogicalDirection.Backward;
910This.Selection.SetCaretToPosition(This.TextContainer.Start, LogicalDirection.Forward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false);
970LogicalDirection movementDirection = IsFlowDirectionRightToLeftThenTopToBottom(This) ? LogicalDirection.Backward : LogicalDirection.Forward;
986LogicalDirection movementDirection = IsFlowDirectionRightToLeftThenTopToBottom(This) ? LogicalDirection.Forward : LogicalDirection.Backward;
1002LogicalDirection movementDirection = IsFlowDirectionRightToLeftThenTopToBottom(This) ? LogicalDirection.Backward : LogicalDirection.Forward;
1018LogicalDirection movementDirection = IsFlowDirectionRightToLeftThenTopToBottom(This) ? LogicalDirection.Forward : LogicalDirection.Backward;
1036if (This.Selection.ExtendToNextTableRow(LogicalDirection.Forward))
1094ITextPointer nextPosition = lineEndPosition.GetNextInsertionPosition(LogicalDirection.Forward);
1146if (TextPointerBase.IsNextToAnyBreak(newMovingPosition, LogicalDirection.Forward) ||
1147newMovingPosition.GetNextInsertionPosition(LogicalDirection.Forward) == null)
1156newMovingPosition = newMovingPosition.GetInsertionPosition(LogicalDirection.Forward);
1157newMovingPosition = newMovingPosition.GetNextInsertionPosition(LogicalDirection.Forward);
1184if (newMovingPosition.GetNextInsertionPosition(LogicalDirection.Forward) == null)
1345if (movingPointer.MoveToNextInsertionPosition(LogicalDirection.Forward))
1627ExtendSelectionAndBringIntoView(lineRange.Start.CreatePointer(LogicalDirection.Forward), This);
1679if (TextPointerBase.IsNextToPlainLineBreak(destination, LogicalDirection.Forward) ||
1680TextPointerBase.IsNextToRichLineBreak(destination, LogicalDirection.Forward))
1689destination = destination.GetNextInsertionPosition(LogicalDirection.Forward);
1693else if (TextPointerBase.IsNextToParagraphBreak(destination, LogicalDirection.Forward) &&
1698ITextPointer newDestination = destination.GetNextInsertionPosition(LogicalDirection.Forward);
2081ITextPointer movingEnd = (direction == LogicalDirection.Forward ? textEditor.Selection.End : textEditor.Selection.Start);
2091LogicalDirection contentDirection = direction == LogicalDirection.Forward ? LogicalDirection.Backward : LogicalDirection.Forward;
2139if (direction == LogicalDirection.Forward)
2142if (!textEditor.Selection.IsEmpty && TextPointerBase.IsAtWordBoundary(textEditor.Selection.End, LogicalDirection.Forward))
2152TextPointerBase.MoveToNextWordBoundary(wordBoundary, LogicalDirection.Forward);
2162if (!textEditor.Selection.IsEmpty && TextPointerBase.IsAtWordBoundary(textEditor.Selection.Start, LogicalDirection.Forward))
2165textEditor.Selection.SetCaretToPosition(textEditor.Selection.Start, LogicalDirection.Forward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false);
2174textEditor.Selection.SetCaretToPosition(wordBoundary, LogicalDirection.Forward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false);
2218wordBoundary.SetLogicalDirection(direction == LogicalDirection.Forward ? LogicalDirection.Backward : LogicalDirection.Forward);
2340movingPosition = movingPosition.GetFrozenPointer(LogicalDirection.Forward);
2357return This.Selection.IsEmpty ? This.Selection.Start : This.Selection.Start.GetFrozenPointer(LogicalDirection.Forward);
2423This.Selection.SetCaretToPosition(position, LogicalDirection.Forward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false);
src\Framework\System\Windows\Documents\TextElement.cs (4)
311TextPointer contentEnd = new TextPointer(tree, _textElementNode, ElementEdge.BeforeEnd, LogicalDirection.Forward);
334elementStart = new TextPointer(tree, _textElementNode, ElementEdge.BeforeStart, LogicalDirection.Forward);
400contentEnd = new TextPointer(tree, _textElementNode, ElementEdge.BeforeEnd, LogicalDirection.Forward);
1054beforeStart = new TextPointer(tree, _textElementNode, ElementEdge.BeforeStart, LogicalDirection.Forward);
src\Framework\System\Windows\Documents\TextPointerBase.cs (49)
87else if (direction == LogicalDirection.Forward && limit.CompareTo(thisPointer) <= 0)
104if (direction == LogicalDirection.Forward)
186Type forwardType = forwardPosition.GetElementType(LogicalDirection.Forward);
190TextPointerContext forwardContext = forwardPosition.GetPointerContext(LogicalDirection.Forward);
233TextPointerContext forwardContext = position.GetPointerContext(LogicalDirection.Forward);
256TextPointerContext forwardContext = position.GetPointerContext(LogicalDirection.Forward);
261typeof(Table).IsAssignableFrom(position.GetElementType(LogicalDirection.Forward)));
280position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd;
325BorderingElementCategory category = GetBorderingElementCategory(navigator, LogicalDirection.Forward);
332navigator.MoveToNextContextPosition(LogicalDirection.Forward);
334while (GetBorderingElementCategory(navigator, LogicalDirection.Forward) == BorderingElementCategory.MergeableScopingInline);
340elementType = navigator.GetElementType(LogicalDirection.Forward);
344navigator.MoveToNextContextPosition(LogicalDirection.Forward);
361elementType = navigator.GetElementType(LogicalDirection.Forward);
364navigator.MoveToNextInsertionPosition(LogicalDirection.Forward);
377navigator.MoveToNextContextPosition(LogicalDirection.Forward);
379while (navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart);
396return IsAtNonMergeableInlineEdge(position, LogicalDirection.Forward);
426position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd)
514return GetWordRange(thisPosition, LogicalDirection.Forward);
549if (moved && IsAtWordBoundary(thisPosition, /*insideWordDirection:*/LogicalDirection.Forward))
556MoveToNextWordBoundary(navigator, direction == LogicalDirection.Backward ? LogicalDirection.Forward : LogicalDirection.Backward);
570wordEnd = RestrictWithinBlock(thisPosition, wordEnd, LogicalDirection.Forward);
576wordEnd = wordEnd.GetFrozenPointer(LogicalDirection.Forward);
591Invariant.Assert(!(direction == LogicalDirection.Forward) || position.CompareTo(limit) <= 0, "for forward direcion position must be <= than linit");
614return limit.GetInsertionPosition(direction == LogicalDirection.Backward ? LogicalDirection.Forward : LogicalDirection.Backward);
635(direction == LogicalDirection.Forward && IsCharUnicodeNewLine(textBuffer[0]))
704bool isAtLineWrappingPosition = position.LogicalDirection == LogicalDirection.Forward
719thisPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd &&
730return thisPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.None &&
970int increment = direction == LogicalDirection.Forward ? +1 : -1;
987if ((direction == LogicalDirection.Forward && initialPosition.CompareTo(thisNavigator) < 0) ||
1031while (TextSchema.IsFormattingType(thisNavigator.GetElementType(LogicalDirection.Forward))
1042if (direction == LogicalDirection.Forward)
1093if (IsAtWordBoundary(thisNavigator, /*insideWordDirection:*/LogicalDirection.Forward))
1153if (direction == LogicalDirection.Forward)
1163oppositeDirection = LogicalDirection.Forward;
1263if (direction == LogicalDirection.Forward && IsAtNonMergeableInlineEnd(thisNavigator))
1265symbolCount += LeaveNonMergeableAncestor(thisNavigator, LogicalDirection.Forward);
1280symbolCount += LeaveNonMergeableAncestor(thisNavigator, LogicalDirection.Forward);
1291int increment = (direction == LogicalDirection.Forward) ? +1 : -1;
1336TextPointerContext forwardContext = position.GetPointerContext(LogicalDirection.Forward);
1373position.GetTextInRun(LogicalDirection.Forward, neighborhood, 1, 1) == 1)
1435navigator.GetTextInRun(LogicalDirection.Forward, preceedingText, SelectionWordBreaker.MinContextLength - preceedingCount, runLength);
1450runLength = Math.Min(navigator.GetTextRunLength(LogicalDirection.Forward), SelectionWordBreaker.MinContextLength - followingCount);
1452navigator.GetTextInRun(LogicalDirection.Forward, followingText, followingCount, runLength);
1461navigator.MoveToInsertionPosition(LogicalDirection.Forward);
1463while (navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text);
1496TextPointerContext context = (direction == LogicalDirection.Forward) ? TextPointerContext.ElementEnd : TextPointerContext.ElementStart;
src\Framework\System\Windows\Documents\TextRangeBase.cs (41)
82textPointer = textPointer.GetFormatNormalizedPosition(LogicalDirection.Forward);
218!TextPointerBase.IsAtWordBoundary(thisRange.Start, LogicalDirection.Forward) && //
297!TextPointerBase.IsNextToAnyBreak(thisRange.End, LogicalDirection.Forward))
303nextPosition.MoveToNextInsertionPosition(LogicalDirection.Forward);
348SkipParagraphContent(end, LogicalDirection.Forward);
364(nextContext == TextPointerContext.ElementStart && direction == LogicalDirection.Forward || //
369(nextContext == TextPointerContext.ElementEnd && direction == LogicalDirection.Forward || //
425if (position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text)
427moved = position.MoveToNextContextPosition(LogicalDirection.Forward);
431moved = position.MoveToInsertionPosition(LogicalDirection.Forward);
436moved = position.MoveToNextInsertionPosition(LogicalDirection.Forward);
507moved = position.MoveToNextContextPosition(LogicalDirection.Forward);
692TextPointerContext symbolType = navigator.GetPointerContext(LogicalDirection.Forward);
708navigator.MoveToNextContextPosition(LogicalDirection.Forward);
718navigator.MoveToNextContextPosition(LogicalDirection.Forward);
723navigator.MoveToNextContextPosition(LogicalDirection.Forward);
726elementType = navigator.GetElementType(LogicalDirection.Forward);
746navigator.MoveToNextContextPosition(LogicalDirection.Forward);
762int runLength = navigator.GetTextRunLength(LogicalDirection.Forward);
764runLength = TextPointerBase.GetTextWithLimit(navigator, LogicalDirection.Forward, charArray, 0, runLength, endPosition);
766navigator.MoveToNextContextPosition(LogicalDirection.Forward);
777navigator.MoveToNextContextPosition(LogicalDirection.Forward);
779TextPointerContext symbolType = navigator.GetPointerContext(LogicalDirection.Forward);
786navigator.MoveToNextContextPosition(LogicalDirection.Forward);
787symbolType = navigator.GetPointerContext(LogicalDirection.Forward);
810List list = (List)navigator.GetAdjacentElement(LogicalDirection.Forward);
831navigator.MoveToNextContextPosition(LogicalDirection.Forward);
841ListItem listItem = (ListItem)navigator.GetAdjacentElement(LogicalDirection.Forward);
873object element = navigator.GetAdjacentElement(LogicalDirection.Forward);
1329thisRange.End.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text)
1377(insertPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.None ||
1378insertPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd);
1390ITextPointer newEnd = insertPosition.CreatePointer(LogicalDirection.Forward);
1395TextPointer insertionPosition = (TextPointer)newStart.CreatePointer(LogicalDirection.Forward);
1433newEnd = newEnd.GetNextInsertionPosition(LogicalDirection.Forward);
1648TextPointerContext context = start.GetPointerContext(LogicalDirection.Forward);
1651start.MoveToNextContextPosition(LogicalDirection.Forward);
1652context = start.GetPointerContext(LogicalDirection.Forward);
1665return start.GetAdjacentElement(LogicalDirection.Forward) as UIElement;
1746start = GetNormalizedPosition(thisRange, start, LogicalDirection.Forward);
1989!TextPointerBase.IsAtInsertionPosition(start, LogicalDirection.Forward) ||
src\Framework\System\Windows\Documents\TextStore.cs (46)
311navigator = CreatePointerAtCharOffset(startIndex, LogicalDirection.Forward);
312limit = (endIndex >= 0) ? CreatePointerAtCharOffset(endIndex, LogicalDirection.Forward) : null;
319TextPointerContext context = navigator.GetPointerContext(LogicalDirection.Forward);
333TextElement element = (TextElement)((TextPointer)navigator).GetAdjacentElement(LogicalDirection.Forward);
342navigator.MoveToNextContextPosition(LogicalDirection.Forward);
348navigator.MoveToNextContextPosition(LogicalDirection.Forward);
381start = start.GetNextInsertionPosition(LogicalDirection.Forward);
566endNavigator.SetLogicalDirection(LogicalDirection.Forward);
739position = CreatePointerAtCharOffset(index, LogicalDirection.Forward);
862ITextPointer positionPrev = position.CreatePointer(LogicalDirection.Forward);
921startPointer = CreatePointerAtCharOffset(startIndex, LogicalDirection.Forward);
922startPointer.MoveToInsertionPosition(LogicalDirection.Forward);
932Rect rectStart = startPointer.GetCharacterRect(LogicalDirection.Forward);
963lineRect = navigator.GetCharacterRect(LogicalDirection.Forward);
964moved = navigator.MoveToNextInsertionPosition(LogicalDirection.Forward);
1362navigator.MoveToInsertionPosition(LogicalDirection.Forward);
1367if (navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text)
1373navigator.GetTextInRun(LogicalDirection.Forward, nextChars, 0, nextChars.Length);
1379TextSelection.ExtendToNextInsertionPosition(LogicalDirection.Forward);
2262_previousCompositionEnd = (_previousCompositionEndOffset == -1) ? null : textEditor.TextContainer.CreatePointerAtOffset(_previousCompositionEndOffset, LogicalDirection.Forward);
2281_previousCompositionEnd = (_previousCompositionEndOffset == -1) ? null : textEditor.TextContainer.CreatePointerAtOffset(_previousCompositionEndOffset, LogicalDirection.Forward);
2318Invariant.Assert(navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text);
2325runCount = TextPointerBase.GetTextWithLimit(navigator, LogicalDirection.Forward, text, charsCopied, Math.Min(cchReq, text.Length - charsCopied), limit);
2334runCount = navigator.GetTextRunLength(LogicalDirection.Forward);
2335navigator.MoveToNextContextPosition(LogicalDirection.Forward);
2377Invariant.Assert(navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.EmbeddedElement);
2387navigator.MoveToNextContextPosition(LogicalDirection.Forward);
2419Invariant.Assert(navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart || navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd);
2437char ch = (navigator.GetAdjacentElement(LogicalDirection.Forward) is TableCell) ? UnsafeNativeMethods.TS_CHAR_REGION : '\n';
2803end = CreatePointerAtCharOffset(startIndex + length, LogicalDirection.Forward);
2805while (start.CompareTo(end) < 0 && start.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.Text)
2807start.MoveToNextContextPosition(LogicalDirection.Forward);
2949positionNext.MoveToNextInsertionPosition(LogicalDirection.Forward);
3093Rect lineBounds = start.GetCharacterRect(LogicalDirection.Forward);
3097ITextPointer navigator = start.CreatePointer(LogicalDirection.Forward);
3098while (navigator.MoveToNextContextPosition(LogicalDirection.Forward) == true && navigator.CompareTo(end) < 0)
3359start = start.GetNextInsertionPosition(LogicalDirection.Forward);
3367start = start.GetNextInsertionPosition(LogicalDirection.Forward);
3387start = CreatePointerAtCharOffset(startCharOffset, LogicalDirection.Forward);
3393TextPointerContext forwardContext = start.GetPointerContext(LogicalDirection.Forward);
3397TextElement element = start.GetAdjacentElement(LogicalDirection.Forward) as TextElement;
3409start.MoveToNextContextPosition(LogicalDirection.Forward);
3549ITextPointer end = this.TextContainer.CreatePointerAtOffset(record.EndOffsetBefore, LogicalDirection.Forward);
3808ITextPointer anchor = this.TextContainer.CreatePointerAtOffset(appSelectionAnchorOffset, LogicalDirection.Forward);
3809ITextPointer moving = this.TextContainer.CreatePointerAtOffset(appSelectionMovingOffset, LogicalDirection.Forward);