4 writes to _anchorPosition
PresentationFramework (4)
System\windows\Documents\TextSelection.cs (4)
1859_anchorPosition = null; 1869_anchorPosition = anchorPosition.GetInsertionPosition(anchorPosition.LogicalDirection); 1874_anchorPosition = thisSelection.Start.GetFrozenPointer(_anchorPosition.LogicalDirection); 1878_anchorPosition = thisSelection.End.GetFrozenPointer(_anchorPosition.LogicalDirection);
12 references to _anchorPosition
PresentationFramework (12)
System\windows\Documents\TextSelection.cs (12)
395Invariant.Assert(this.IsEmpty || _anchorPosition != null); 396Invariant.Assert(_anchorPosition == null || _anchorPosition.IsFrozen); 397return this.IsEmpty ? ((ITextSelection)this).Start : _anchorPosition; 1038Invariant.Assert(_anchorPosition != null); 1041if (!TextRangeEditTables.IsTableCellRange((TextPointer)_anchorPosition, (TextPointer)((ITextSelection)this).MovingPosition, /*includeCellAtMovingPosition:*/false, out anchorCell, out movingCell)) 1083TextRangeBase.Select(this, _anchorPosition, movingPosition); 1086SetActivePositions(_anchorPosition, movingPosition); 1872if (_anchorPosition.CompareTo(thisSelection.Start) < 0) 1874_anchorPosition = thisSelection.Start.GetFrozenPointer(_anchorPosition.LogicalDirection); 1876else if (_anchorPosition.CompareTo(thisSelection.End) > 0) 1878_anchorPosition = thisSelection.End.GetFrozenPointer(_anchorPosition.LogicalDirection);