1 implementation of AnchorPosition
PresentationFramework (1)
System\windows\Documents\TextSelection.cs (1)
378ITextPointer ITextSelection.AnchorPosition
20 references to AnchorPosition
PresentationFramework (20)
MS\Internal\Documents\IFlowDocumentViewer.cs (4)
222textSelection.SetCaretToPosition(newTextSelection.AnchorPosition, newTextSelection.MovingPosition.LogicalDirection, true, true); 543newTextSelection.AnchorPosition != null && 544newTextSelection.AnchorPosition.TextContainer == flowDocument.StructuralCache.TextContainer) 549textSelection.SetCaretToPosition(newTextSelection.AnchorPosition, newTextSelection.MovingPosition.LogicalDirection, true, true);
System\windows\Documents\TextEditor.cs (1)
1205string textAdjacent = textContainer.TextSelection.AnchorPosition.GetTextInRun(LogicalDirection.Backward);
System\windows\Documents\TextEditorSelection.cs (4)
1659if (This.Selection.AnchorPosition.ValidateLayout()) 1661TextSegment anchorLineRange = TextEditorSelection.GetNormalizedLineRange(This.TextView, This.Selection.AnchorPosition); 1662if (!lineRange.IsNull && anchorLineRange.Start.CompareTo(This.Selection.AnchorPosition) == 0) 1669TextPointerBase.IsNextToParagraphBreak(This.Selection.AnchorPosition, LogicalDirection.Backward))
System\Windows\Documents\TextParentUndoUnit.cs (2)
34: this(selection, selection.AnchorPosition, selection.MovingPosition) 171RecordRedoSelectionState(_selection.AnchorPosition, _selection.MovingPosition);
System\windows\Documents\TextSelection.cs (5)
553ITextPointer anchorPosition = thisSelection.AnchorPosition; 575ITextPointer anchorPosition = ((ITextSelection)this).AnchorPosition; 812ITextPointer anchorPosition = ((ITextSelection)this).AnchorPosition; 841Invariant.Assert(thisSelection.Contains(thisSelection.AnchorPosition)); 1145return (TextPointer)((ITextSelection)this).AnchorPosition;
System\Windows\Documents\TextStore.cs (4)
673ITextRange range = new TextRange(this.TextSelection.AnchorPosition, this.TextSelection.MovingPosition); 3529int imeSelectionAnchorOffset = this.TextSelection.AnchorPosition.Offset; 3769appSelectionAnchorOffset = this.TextSelection.AnchorPosition.Offset; 3796appSelectionAnchorOffset = this.TextSelection.AnchorPosition.Offset;