4 writes to _anchorPosition
PresentationFramework (4)
System\windows\Documents\TextSelection.cs (4)
1844_anchorPosition = null; 1854_anchorPosition = anchorPosition.GetInsertionPosition(anchorPosition.LogicalDirection); 1859_anchorPosition = thisSelection.Start.GetFrozenPointer(_anchorPosition.LogicalDirection); 1863_anchorPosition = thisSelection.End.GetFrozenPointer(_anchorPosition.LogicalDirection);
12 references to _anchorPosition
PresentationFramework (12)
System\windows\Documents\TextSelection.cs (12)
383Invariant.Assert(this.IsEmpty || _anchorPosition != null); 384Invariant.Assert(_anchorPosition == null || _anchorPosition.IsFrozen); 385return this.IsEmpty ? ((ITextSelection)this).Start : _anchorPosition; 1023Invariant.Assert(_anchorPosition != null); 1026if (!TextRangeEditTables.IsTableCellRange((TextPointer)_anchorPosition, (TextPointer)((ITextSelection)this).MovingPosition, /*includeCellAtMovingPosition:*/false, out anchorCell, out movingCell)) 1068TextRangeBase.Select(this, _anchorPosition, movingPosition); 1071SetActivePositions(_anchorPosition, movingPosition); 1857if (_anchorPosition.CompareTo(thisSelection.Start) < 0) 1859_anchorPosition = thisSelection.Start.GetFrozenPointer(_anchorPosition.LogicalDirection); 1861else if (_anchorPosition.CompareTo(thisSelection.End) > 0) 1863_anchorPosition = thisSelection.End.GetFrozenPointer(_anchorPosition.LogicalDirection);