1 implementation of AnchorPosition
PresentationFramework (1)
System\windows\Documents\TextSelection.cs (1)
394ITextPointer ITextSelection.AnchorPosition
20 references to AnchorPosition
PresentationFramework (20)
MS\Internal\Documents\IFlowDocumentViewer.cs (4)
226textSelection.SetCaretToPosition(newTextSelection.AnchorPosition, newTextSelection.MovingPosition.LogicalDirection, true, true); 559newTextSelection.AnchorPosition != null && 560newTextSelection.AnchorPosition.TextContainer == flowDocument.StructuralCache.TextContainer) 565textSelection.SetCaretToPosition(newTextSelection.AnchorPosition, newTextSelection.MovingPosition.LogicalDirection, true, true);
System\windows\Documents\TextEditor.cs (1)
1218string textAdjacent = textContainer.TextSelection.AnchorPosition.GetTextInRun(LogicalDirection.Backward);
System\windows\Documents\TextEditorSelection.cs (4)
1675if (This.Selection.AnchorPosition.ValidateLayout()) 1677TextSegment anchorLineRange = TextEditorSelection.GetNormalizedLineRange(This.TextView, This.Selection.AnchorPosition); 1678if (!lineRange.IsNull && anchorLineRange.Start.CompareTo(This.Selection.AnchorPosition) == 0) 1685TextPointerBase.IsNextToParagraphBreak(This.Selection.AnchorPosition, LogicalDirection.Backward))
System\Windows\Documents\TextParentUndoUnit.cs (2)
46: this(selection, selection.AnchorPosition, selection.MovingPosition) 183RecordRedoSelectionState(_selection.AnchorPosition, _selection.MovingPosition);
System\windows\Documents\TextSelection.cs (5)
569ITextPointer anchorPosition = thisSelection.AnchorPosition; 591ITextPointer anchorPosition = ((ITextSelection)this).AnchorPosition; 831ITextPointer anchorPosition = ((ITextSelection)this).AnchorPosition; 860Invariant.Assert(thisSelection.Contains(thisSelection.AnchorPosition)); 1164return (TextPointer)((ITextSelection)this).AnchorPosition;
System\Windows\Documents\TextStore.cs (4)
685ITextRange range = new TextRange(this.TextSelection.AnchorPosition, this.TextSelection.MovingPosition); 3557int imeSelectionAnchorOffset = this.TextSelection.AnchorPosition.Offset; 3797appSelectionAnchorOffset = this.TextSelection.AnchorPosition.Offset; 3824appSelectionAnchorOffset = this.TextSelection.AnchorPosition.Offset;