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)
395
Invariant.Assert(this.IsEmpty ||
_anchorPosition
!= null);
396
Invariant.Assert(
_anchorPosition
== null ||
_anchorPosition
.IsFrozen);
397
return this.IsEmpty ? ((ITextSelection)this).Start :
_anchorPosition
;
1038
Invariant.Assert(
_anchorPosition
!= null);
1041
if (!TextRangeEditTables.IsTableCellRange((TextPointer)
_anchorPosition
, (TextPointer)((ITextSelection)this).MovingPosition, /*includeCellAtMovingPosition:*/false, out anchorCell, out movingCell))
1083
TextRangeBase.Select(this,
_anchorPosition
, movingPosition);
1086
SetActivePositions(
_anchorPosition
, movingPosition);
1872
if (
_anchorPosition
.CompareTo(thisSelection.Start) < 0)
1874
_anchorPosition = thisSelection.Start.GetFrozenPointer(
_anchorPosition
.LogicalDirection);
1876
else if (
_anchorPosition
.CompareTo(thisSelection.End) > 0)
1878
_anchorPosition = thisSelection.End.GetFrozenPointer(
_anchorPosition
.LogicalDirection);