5 writes to _currentPosition
PresentationFramework (5)
MS\Internal\Documents\HostedElements.cs (5)
27
_currentPosition
= null;
74
_currentPosition
= new TextPointer(_textSegments[0].Start as TextPointer);
79
_currentPosition
= null;
119
_currentPosition
= new TextPointer(_textSegments[_currentTextSegment].Start as TextPointer);
124
_currentPosition
= null;
15 references to _currentPosition
PresentationFramework (15)
MS\Internal\Documents\HostedElements.cs (15)
67
if (
_currentPosition
== null)
87
Debug.Assert(((ITextPointer)
_currentPosition
).CompareTo(_textSegments[_currentTextSegment].Start) >= 0 &&
88
((ITextPointer)
_currentPosition
).CompareTo(_textSegments[_currentTextSegment].End) < 0);
92
_currentPosition
.MoveToNextContextPosition(LogicalDirection.Forward);
98
Debug.Assert(((ITextPointer)
_currentPosition
).CompareTo(_textSegments[_currentTextSegment].Start) >= 0);
99
while (((ITextPointer)
_currentPosition
).CompareTo(_textSegments[_currentTextSegment].End) < 0)
101
if (
_currentPosition
.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart ||
102
_currentPosition
.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.EmbeddedElement)
108
_currentPosition
.MoveToNextContextPosition(LogicalDirection.Forward);
165
if (
_currentPosition
== null)
173
switch (
_currentPosition
.GetPointerContext(LogicalDirection.Forward))
176
Debug.Assert(
_currentPosition
.GetAdjacentElementFromOuterPosition(LogicalDirection.Forward) is IInputElement);
177
currentElement =
_currentPosition
.GetAdjacentElementFromOuterPosition(LogicalDirection.Forward);
180
Debug.Assert(
_currentPosition
.GetAdjacentElement(LogicalDirection.Forward) is IInputElement);
181
currentElement = (IInputElement)
_currentPosition
.GetAdjacentElement(LogicalDirection.Forward);