1 implementation of AnchorPosition
PresentationFramework (1)
System\windows\Documents\TextSelection.cs (1)
379ITextPointer ITextSelection.AnchorPosition
20 references to AnchorPosition
PresentationFramework (20)
MS\Internal\Documents\IFlowDocumentViewer.cs (4)
223textSelection.SetCaretToPosition(newTextSelection.AnchorPosition, newTextSelection.MovingPosition.LogicalDirection, true, true); 544newTextSelection.AnchorPosition != null && 545newTextSelection.AnchorPosition.TextContainer == flowDocument.StructuralCache.TextContainer) 550textSelection.SetCaretToPosition(newTextSelection.AnchorPosition, newTextSelection.MovingPosition.LogicalDirection, true, true);
System\windows\Documents\TextEditor.cs (1)
1206string textAdjacent = textContainer.TextSelection.AnchorPosition.GetTextInRun(LogicalDirection.Backward);
System\windows\Documents\TextEditorSelection.cs (4)
1660if (This.Selection.AnchorPosition.ValidateLayout()) 1662TextSegment anchorLineRange = TextEditorSelection.GetNormalizedLineRange(This.TextView, This.Selection.AnchorPosition); 1663if (!lineRange.IsNull && anchorLineRange.Start.CompareTo(This.Selection.AnchorPosition) == 0) 1670TextPointerBase.IsNextToParagraphBreak(This.Selection.AnchorPosition, LogicalDirection.Backward))
System\Windows\Documents\TextParentUndoUnit.cs (2)
35: this(selection, selection.AnchorPosition, selection.MovingPosition) 172RecordRedoSelectionState(_selection.AnchorPosition, _selection.MovingPosition);
System\windows\Documents\TextSelection.cs (5)
554ITextPointer anchorPosition = thisSelection.AnchorPosition; 576ITextPointer anchorPosition = ((ITextSelection)this).AnchorPosition; 813ITextPointer anchorPosition = ((ITextSelection)this).AnchorPosition; 842Invariant.Assert(thisSelection.Contains(thisSelection.AnchorPosition)); 1146return (TextPointer)((ITextSelection)this).AnchorPosition;
System\Windows\Documents\TextStore.cs (4)
674ITextRange range = new TextRange(this.TextSelection.AnchorPosition, this.TextSelection.MovingPosition); 3530int imeSelectionAnchorOffset = this.TextSelection.AnchorPosition.Offset; 3770appSelectionAnchorOffset = this.TextSelection.AnchorPosition.Offset; 3797appSelectionAnchorOffset = this.TextSelection.AnchorPosition.Offset;