5 implementations of LogicalDirection
PresentationFramework (5)
src\Framework\System\Windows\Controls\PasswordTextNavigator.cs (1)
655
LogicalDirection ITextPointer.
LogicalDirection
src\Framework\System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
389
LogicalDirection ITextPointer.
LogicalDirection
src\Framework\System\Windows\Documents\FixedTextPointer.cs (1)
612
LogicalDirection ITextPointer.
LogicalDirection
src\Framework\System\Windows\Documents\NullTextNavigator.cs (1)
459
LogicalDirection ITextPointer.
LogicalDirection
src\Framework\System\Windows\Documents\TextPointer.cs (1)
3704
LogicalDirection ITextPointer.
LogicalDirection
154 references to LogicalDirection
PresentationFramework (154)
src\Framework\MS\Internal\Annotations\Component\MArkedHighlightComponent.cs (3)
821
LogicalDirection direction = pointer.
LogicalDirection
;
857
if (currentContext == TextPointerContext.ElementEnd && nextPointer.GetPointerContext(nextPointer.
LogicalDirection
) == TextPointerContext.ElementStart)
864
if (currentContext == TextPointerContext.ElementStart && nextPointer.GetPointerContext(nextPointer.
LogicalDirection
) == TextPointerContext.ElementEnd)
src\Framework\MS\Internal\Annotations\TextAnchor.cs (7)
225
(theirSegment.Start.
LogicalDirection
== LogicalDirection.Forward))
231
(theirSegment.End.
LogicalDirection
== LogicalDirection.Backward))
667
if (!TextPointerBase.IsAtInsertionPosition(start, start.
LogicalDirection
))
669
start = start.GetInsertionPosition(start.
LogicalDirection
);
675
if (!TextPointerBase.IsAtInsertionPosition(start, start.
LogicalDirection
))
679
if (!TextPointerBase.IsAtInsertionPosition(end, start.
LogicalDirection
))
688
if (start.
LogicalDirection
== LogicalDirection.Backward)
src\Framework\MS\Internal\Documents\IFlowDocumentViewer.cs (2)
227
textSelection.SetCaretToPosition(newTextSelection.AnchorPosition, newTextSelection.MovingPosition.
LogicalDirection
, true, true);
566
textSelection.SetCaretToPosition(newTextSelection.AnchorPosition, newTextSelection.MovingPosition.
LogicalDirection
, true, true);
src\Framework\MS\Internal\Documents\TextBoxView.cs (7)
637
if (offset > 0 && position.
LogicalDirection
== LogicalDirection.Backward)
661
if (position.
LogicalDirection
== LogicalDirection.Forward || position.Offset == 0)
668
if (position.
LogicalDirection
== LogicalDirection.Backward && position.Offset > 0)
785
nextLinePosition = position.GetFrozenPointer(position.
LogicalDirection
);
828
if (position.
LogicalDirection
== LogicalDirection.Forward)
833
else if (position.
LogicalDirection
== LogicalDirection.Backward)
1696
return GetLineIndexFromOffset(position.Offset, position.
LogicalDirection
);
src\Framework\MS\Internal\Documents\TextContainerHelper.cs (4)
129
if (cpPos == _cpFirst && position.
LogicalDirection
== LogicalDirection.Backward ||
130
cpPos == _cpLast && position.
LogicalDirection
== LogicalDirection.Forward)
146
if (cpPos == _ranges[i * 2] && position.
LogicalDirection
== LogicalDirection.Backward ||
147
cpPos == _ranges[i * 2 + 1] && position.
LogicalDirection
== LogicalDirection.Forward)
src\Framework\MS\Internal\Documents\TextDocumentView.cs (8)
489
if (position.
LogicalDirection
== LogicalDirection.Forward)
499
if (segment.Start.
LogicalDirection
== LogicalDirection.Backward)
508
if (position.
LogicalDirection
== LogicalDirection.Backward)
518
if (segment.End.
LogicalDirection
== LogicalDirection.Forward)
531
if (position.TextContainer.Start.CompareTo(position) == 0 && position.
LogicalDirection
== LogicalDirection.Backward)
535
else if (position.TextContainer.End.CompareTo(position) == 0 && position.
LogicalDirection
== LogicalDirection.Forward)
3492
if (textPointer.
LogicalDirection
== LogicalDirection.Forward && textPointer.CompareTo(textElement.ElementStart) == 0)
3497
if (textPointer.
LogicalDirection
== LogicalDirection.Backward && textPointer.CompareTo(textElement.ElementEnd) == 0)
src\Framework\MS\Internal\Documents\TextParagraphView.cs (3)
134
ValidationHelper.VerifyDirection(startPosition.
LogicalDirection
, "startPosition.LogicalDirection");
428
if (position.
LogicalDirection
== LogicalDirection.Forward && (lineIndex != lines.Count - 1))
435
if (position.
LogicalDirection
== LogicalDirection.Backward && lineIndex != 0)
src\Framework\MS\Internal\PtsHost\TextParaClient.cs (9)
785
if (position.
LogicalDirection
== LogicalDirection.Backward && dcp > 0)
807
RectFromDcpSimpleLines(dcp, originalDcp, position.
LogicalDirection
, position.GetPointerContext(position.
LogicalDirection
), ref textDetails.u.full, ref rect, ref vrBaseline);
812
RectFromDcpCompositeLines(dcp, originalDcp, position.
LogicalDirection
, position.GetPointerContext(position.
LogicalDirection
), ref textDetails.u.full, ref rect, ref vrBaseline);
2626
if (position.
LogicalDirection
== LogicalDirection.Backward)
2651
else if (position.
LogicalDirection
== LogicalDirection.Forward)
2733
if (position.
LogicalDirection
== LogicalDirection.Backward)
2780
else if (position.
LogicalDirection
== LogicalDirection.Forward)
src\Framework\System\Windows\Annotations\AnnotationHelper.cs (4)
535
selection.SetCaretToPosition(selection.MovingPosition, selection.MovingPosition.
LogicalDirection
, true, true);
877
(selection.Start.
LogicalDirection
== LogicalDirection.Forward)) ||
879
(selection.End.
LogicalDirection
== LogicalDirection.Backward)))
971
selection.SetCaretToPosition(selection.MovingPosition, selection.MovingPosition.
LogicalDirection
, true, true);
src\Framework\System\Windows\Controls\TextBlock.cs (5)
2275
if (orientedPosition.
LogicalDirection
== LogicalDirection.Backward && characterIndex > 0)
2334
if (orientedPosition.
LogicalDirection
== LogicalDirection.Forward || originalCharacterIndex == 0)
2344
if (orientedPosition.
LogicalDirection
== LogicalDirection.Backward && originalCharacterIndex > 0)
2488
if (position.
LogicalDirection
== LogicalDirection.Backward)
2502
else if (position.
LogicalDirection
== LogicalDirection.Forward)
src\Framework\System\Windows\Controls\TextRangeAdaptor.cs (6)
1502
MoveToInsertionPosition(_start, _start.
LogicalDirection
);
1503
MoveToInsertionPosition(_end, _end.
LogicalDirection
);
1921
if ((position.CompareTo(_start)==0 && position.
LogicalDirection
!= _start.
LogicalDirection
) ||
1983
(position.CompareTo(positionRef) == 0 && position.
LogicalDirection
!= positionRef.
LogicalDirection
))
src\Framework\System\Windows\Documents\DocumentSequenceTextPointer.cs (8)
371
if (!isAtCaretUnitBoundary && ((ITextPointer)this).
LogicalDirection
== LogicalDirection.Backward)
387
/// <see cref="ITextPointer.
LogicalDirection
"/>
393
return _childTp.
LogicalDirection
;
488
LogicalDirection gravity = this.ChildPointer.
LogicalDirection
;
779
return CreatePointer(thisTp, 0, thisTp.ChildPointer.
LogicalDirection
);
784
return CreatePointer(thisTp, distance, thisTp.ChildPointer.
LogicalDirection
);
1098
cdb.ChildContainer.Start.CreatePointer(childTn.
LogicalDirection
)
1099
: cdb.ChildContainer.End.CreatePointer(childTn.
LogicalDirection
)
src\Framework\System\Windows\Documents\DocumentSequenceTextView.cs (10)
96
edge = childOTP.
LogicalDirection
;
133
DocumentsTrace.FixedDocumentSequence.TextOM.Trace(string.Format("GetRawRectangleFromTextPosition {0} {1}", position, position.
LogicalDirection
));
150
return ChildTextView.GetRawRectangleFromTextPosition(tp.ChildPointer.CreatePointer(position.
LogicalDirection
), out transform);
217
DocumentsTrace.FixedDocumentSequence.TextOM.Trace(string.Format("GetPositionAtNextLine {0} {1} {2} {3} ", position, position.
LogicalDirection
, suggestedX, count));
233
ITextPointer childOTP = ChildTextView.GetPositionAtNextLine(tp.ChildPointer.CreatePointer(position.
LogicalDirection
), suggestedX, count, out newSuggestedX, out linesMoved);
237
newEdge = childOTP.
LogicalDirection
;
375
DocumentsTrace.FixedDocumentSequence.TextOM.Trace(string.Format("GetLineRange {0} {1}", position, position.
LogicalDirection
));
388
TextSegment childTR = ChildTextView.GetLineRange(tpLine.ChildPointer.CreatePointer(position.
LogicalDirection
));
448
DocumentsTrace.FixedDocumentSequence.TextOM.Trace(string.Format("Contains {0} {1}", position, position.
LogicalDirection
));
462
return ChildTextView.Contains(tp.ChildPointer.CreatePointer(position.
LogicalDirection
));
src\Framework\System\Windows\Documents\FixedTextPointer.cs (3)
259
return ((ITextPointer)this).CreatePointer(0, ((ITextPointer)this).
LogicalDirection
);
277
return ((ITextPointer)this).CreatePointer(distance, ((ITextPointer)this).
LogicalDirection
);
610
/// <see cref="ITextPointer.
LogicalDirection
"/>
src\Framework\System\Windows\Documents\FixedTextView.cs (2)
354
LogicalDirection edge = position.
LogicalDirection
;
1223
LogicalDirection dir = textPointer.
LogicalDirection
;
src\Framework\System\Windows\Documents\NullTextNavigator.cs (1)
457
/// <see cref="ITextPointer.
LogicalDirection
"/>
src\Framework\System\windows\Documents\TextEditorDragDrop.cs (1)
483
dropPosition = dropPosition.GetInsertionPosition(dropPosition.
LogicalDirection
);
src\Framework\System\windows\Documents\TextEditorMouse.cs (4)
737
if (!(mouseMovePosition.GetPointerContext(mouseMovePosition.
LogicalDirection
) == TextPointerContext.EmbeddedElement))
749
ITextPointer otherEdgePosition = mouseMovePosition.GetNextContextPosition(mouseMovePosition.
LogicalDirection
);
750
LogicalDirection otherEdgeDirection = (mouseMovePosition.
LogicalDirection
== LogicalDirection.Forward) ?
766
return mouseMovePosition.GetAdjacentElement(mouseMovePosition.
LogicalDirection
) as UIElement;
src\Framework\System\windows\Documents\TextEditorSelection.cs (24)
293
This.Selection.SetCaretToPosition(position, position.
LogicalDirection
, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/true);
322
This.Selection.SetCaretToPosition(newMovingPosition, newMovingPosition.
LogicalDirection
, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/true);
338
originalMovingPosition.
LogicalDirection
, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/true);
382
This.Selection.SetCaretToPosition(position, position.
LogicalDirection
, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/true);
412
This.Selection.SetCaretToPosition(newMovingPosition, newMovingPosition.
LogicalDirection
, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/true);
428
originalMovingPosition.
LogicalDirection
, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/true);
479
This.Selection.SetCaretToPosition(position, position.
LogicalDirection
, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false);
531
This.Selection.SetCaretToPosition(position, position.
LogicalDirection
, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false);
584
This.Selection.SetCaretToPosition(position, position.
LogicalDirection
, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/true);
627
This.Selection.SetCaretToPosition(targetPosition, targetPosition.
LogicalDirection
, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/false);
665
This.Selection.SetCaretToPosition(targetPosition, targetPosition.
LogicalDirection
, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/false);
702
This.Selection.SetCaretToPosition(position, position.
LogicalDirection
, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/true);
741
This.Selection.SetCaretToPosition(targetPosition, targetPosition.
LogicalDirection
, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/false);
779
This.Selection.SetCaretToPosition(targetPosition, targetPosition.
LogicalDirection
, /*allowStopAtLineEnd:*/
1140
if (newComparedToOld > 0 || newComparedToOld == 0 && newMovingPosition.
LogicalDirection
!= originalMovingPosition.
LogicalDirection
)
1254
if (newComparedToOld < 0 || newComparedToOld == 0 && newMovingPosition.
LogicalDirection
!= originalMovingPosition.
LogicalDirection
)
1809
This.Selection.SetCaretToPosition(e.NewPosition, e.NewPosition.
LogicalDirection
, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/true);
1839
This.Selection.SetCaretToPosition(e.NewPosition, e.NewPosition.
LogicalDirection
, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/true);
1874
if (newComparedToOld < 0 || newComparedToOld == 0 && e.NewPosition.
LogicalDirection
!= e.Position.
LogicalDirection
)
2330
movingPosition.
LogicalDirection
== LogicalDirection.Backward &&
2345
movingPosition = movingPosition.GetInsertionPosition(movingPosition.
LogicalDirection
);
src\Framework\System\windows\Documents\TextEditorSpelling.cs (1)
62
LogicalDirection direction = This.Selection.IsEmpty ? This.Selection.Start.
LogicalDirection
: LogicalDirection.Forward;
src\Framework\System\Windows\Documents\TextFindEngine.cs (1)
313
ITextPointer oppositeEndPosition = position.CreatePointer(oppositeEndOffset, position.
LogicalDirection
);
src\Framework\System\Windows\Documents\TextParentUndoUnit.cs (4)
61
_undoAnchorPositionDirection = anchorPosition.
LogicalDirection
;
63
_undoMovingPositionDirection = movingPosition.
LogicalDirection
;
199
_redoAnchorPositionDirection = anchorPosition.
LogicalDirection
;
201
_redoMovingPositionDirection = movingPosition.
LogicalDirection
;
src\Framework\System\Windows\Documents\TextPointerBase.cs (6)
704
bool isAtLineWrappingPosition = position.
LogicalDirection
== LogicalDirection.Forward
824
position.MoveToInsertionPosition(position.
LogicalDirection
);
837
thisPointer.SetLogicalDirection(position.
LogicalDirection
);
846
thisPointer.SetLogicalDirection(lineRange.Start.
LogicalDirection
);
854
thisPointer.SetLogicalDirection(position.
LogicalDirection
);
1108
if (thisPointer.IsFrozen && thisPointer.
LogicalDirection
== logicalDirection)
src\Framework\System\Windows\Documents\TextRangeBase.cs (6)
1738
if (!IsAtNormalizedPosition(thisRange, start, start.
LogicalDirection
))
1740
start = GetNormalizedPosition(thisRange, start, start.
LogicalDirection
);
1760
if (start.
LogicalDirection
== LogicalDirection.Backward)
1788
if (!IsAtNormalizedPosition(thisRange, start, start.
LogicalDirection
))
1790
start = GetNormalizedPosition(thisRange, start, start.
LogicalDirection
);
1971
if (!TextPointerBase.IsAtInsertionPosition(start, start.
LogicalDirection
))
src\Framework\System\windows\Documents\TextSegment.cs (3)
72
_start = startPosition.GetFrozenPointer(startPosition.
LogicalDirection
);
78
_start = startPosition.GetFrozenPointer(preserveLogicalDirection ? startPosition.
LogicalDirection
: LogicalDirection.Backward);
79
_end = endPosition.GetFrozenPointer(preserveLogicalDirection ? endPosition.
LogicalDirection
: LogicalDirection.Forward);
src\Framework\System\windows\Documents\TextSelection.cs (22)
543
Invariant.Assert(thisSelection.Start.
LogicalDirection
== caretPosition.
LogicalDirection
); // orientation must be as passed
691
position = position.GetNextInsertionPosition(position.
LogicalDirection
);
906
cursorWordRange = TextPointerBase.GetWordRange(cursorPosition, cursorPosition.
LogicalDirection
);
1004
cursorWordRange = TextPointerBase.GetWordRange(cursorPosition, cursorPosition.
LogicalDirection
);
1880
_anchorPosition = anchorPosition.GetInsertionPosition(anchorPosition.
LogicalDirection
);
1885
_anchorPosition = thisSelection.Start.GetFrozenPointer(_anchorPosition.
LogicalDirection
);
1889
_anchorPosition = thisSelection.End.GetFrozenPointer(_anchorPosition.
LogicalDirection
);
1893
_movingPositionDirection = movingPosition.
LogicalDirection
;
1962
if (cursorPosition.GetPointerContext(cursorPosition.
LogicalDirection
) == TextPointerContext.EmbeddedElement)
1970
movingPosition = cursorPosition.GetNextContextPosition(cursorPosition.
LogicalDirection
);
1977
thisSelection.SetCaretToPosition(cursorPosition, cursorPosition.
LogicalDirection
, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/false);
2005
(cursorPosition.
LogicalDirection
== LogicalDirection.Forward && objectEdgeRect.X < cursorMousePoint.X ||
2006
cursorPosition.
LogicalDirection
== LogicalDirection.Backward && cursorMousePoint.X < objectEdgeRect.X))
2011
(cursorPosition.
LogicalDirection
== LogicalDirection.Forward && objectEdgeRect.X > cursorMousePoint.X ||
2012
cursorPosition.
LogicalDirection
== LogicalDirection.Backward && cursorMousePoint.X > objectEdgeRect.X))
2020
(cursorPosition.
LogicalDirection
== LogicalDirection.Forward && objectEdgeRect.X > cursorMousePoint.X ||
2021
cursorPosition.
LogicalDirection
== LogicalDirection.Backward && cursorMousePoint.X > objectEdgeRect.X))
2026
(cursorPosition.
LogicalDirection
== LogicalDirection.Forward && objectEdgeRect.X < cursorMousePoint.X ||
2027
cursorPosition.
LogicalDirection
== LogicalDirection.Backward && cursorMousePoint.X < objectEdgeRect.X))
2189
if ((caretPosition.
LogicalDirection
== LogicalDirection.Backward && //
2206
if (caretPosition.
LogicalDirection
== LogicalDirection.Backward && //