4 writes to _anchorPosition
PresentationFramework (4)
System\windows\Documents\TextSelection.cs (4)
1862_anchorPosition = null; 1872_anchorPosition = anchorPosition.GetInsertionPosition(anchorPosition.LogicalDirection); 1877_anchorPosition = thisSelection.Start.GetFrozenPointer(_anchorPosition.LogicalDirection); 1881_anchorPosition = thisSelection.End.GetFrozenPointer(_anchorPosition.LogicalDirection);
12 references to _anchorPosition
PresentationFramework (12)
System\windows\Documents\TextSelection.cs (12)
398Invariant.Assert(this.IsEmpty || _anchorPosition != null); 399Invariant.Assert(_anchorPosition == null || _anchorPosition.IsFrozen); 400return this.IsEmpty ? ((ITextSelection)this).Start : _anchorPosition; 1041Invariant.Assert(_anchorPosition != null); 1044if (!TextRangeEditTables.IsTableCellRange((TextPointer)_anchorPosition, (TextPointer)((ITextSelection)this).MovingPosition, /*includeCellAtMovingPosition:*/false, out anchorCell, out movingCell)) 1086TextRangeBase.Select(this, _anchorPosition, movingPosition); 1089SetActivePositions(_anchorPosition, movingPosition); 1875if (_anchorPosition.CompareTo(thisSelection.Start) < 0) 1877_anchorPosition = thisSelection.Start.GetFrozenPointer(_anchorPosition.LogicalDirection); 1879else if (_anchorPosition.CompareTo(thisSelection.End) > 0) 1881_anchorPosition = thisSelection.End.GetFrozenPointer(_anchorPosition.LogicalDirection);