1 implementation of AnchorPosition
PresentationFramework (1)
System\windows\Documents\TextSelection.cs (1)
391ITextPointer ITextSelection.AnchorPosition
20 references to AnchorPosition
PresentationFramework (20)
MS\Internal\Documents\IFlowDocumentViewer.cs (4)
223textSelection.SetCaretToPosition(newTextSelection.AnchorPosition, newTextSelection.MovingPosition.LogicalDirection, true, true); 556newTextSelection.AnchorPosition != null && 557newTextSelection.AnchorPosition.TextContainer == flowDocument.StructuralCache.TextContainer) 562textSelection.SetCaretToPosition(newTextSelection.AnchorPosition, newTextSelection.MovingPosition.LogicalDirection, true, true);
System\windows\Documents\TextEditor.cs (1)
1212string 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)
566ITextPointer anchorPosition = thisSelection.AnchorPosition; 588ITextPointer anchorPosition = ((ITextSelection)this).AnchorPosition; 828ITextPointer anchorPosition = ((ITextSelection)this).AnchorPosition; 857Invariant.Assert(thisSelection.Contains(thisSelection.AnchorPosition)); 1161return (TextPointer)((ITextSelection)this).AnchorPosition;
System\Windows\Documents\TextStore.cs (4)
674ITextRange range = new TextRange(this.TextSelection.AnchorPosition, this.TextSelection.MovingPosition); 3537int imeSelectionAnchorOffset = this.TextSelection.AnchorPosition.Offset; 3777appSelectionAnchorOffset = this.TextSelection.AnchorPosition.Offset; 3804appSelectionAnchorOffset = this.TextSelection.AnchorPosition.Offset;