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)
383
Invariant.Assert(this.IsEmpty ||
_anchorPosition
!= null);
384
Invariant.Assert(
_anchorPosition
== null ||
_anchorPosition
.IsFrozen);
385
return this.IsEmpty ? ((ITextSelection)this).Start :
_anchorPosition
;
1023
Invariant.Assert(
_anchorPosition
!= null);
1026
if (!TextRangeEditTables.IsTableCellRange((TextPointer)
_anchorPosition
, (TextPointer)((ITextSelection)this).MovingPosition, /*includeCellAtMovingPosition:*/false, out anchorCell, out movingCell))
1068
TextRangeBase.Select(this,
_anchorPosition
, movingPosition);
1071
SetActivePositions(
_anchorPosition
, movingPosition);
1857
if (
_anchorPosition
.CompareTo(thisSelection.Start) < 0)
1859
_anchorPosition = thisSelection.Start.GetFrozenPointer(
_anchorPosition
.LogicalDirection);
1861
else if (
_anchorPosition
.CompareTo(thisSelection.End) > 0)
1863
_anchorPosition = thisSelection.End.GetFrozenPointer(
_anchorPosition
.LogicalDirection);