5 writes to _currentPosition
PresentationFramework (5)
MS\Internal\Documents\HostedElements.cs (5)
37
_currentPosition
= null;
84
_currentPosition
= new TextPointer(_textSegments[0].Start as TextPointer);
89
_currentPosition
= null;
129
_currentPosition
= new TextPointer(_textSegments[_currentTextSegment].Start as TextPointer);
134
_currentPosition
= null;
15 references to _currentPosition
PresentationFramework (15)
MS\Internal\Documents\HostedElements.cs (15)
77
if (
_currentPosition
== null)
97
Debug.Assert(((ITextPointer)
_currentPosition
).CompareTo(_textSegments[_currentTextSegment].Start) >= 0 &&
98
((ITextPointer)
_currentPosition
).CompareTo(_textSegments[_currentTextSegment].End) < 0);
102
_currentPosition
.MoveToNextContextPosition(LogicalDirection.Forward);
108
Debug.Assert(((ITextPointer)
_currentPosition
).CompareTo(_textSegments[_currentTextSegment].Start) >= 0);
109
while (((ITextPointer)
_currentPosition
).CompareTo(_textSegments[_currentTextSegment].End) < 0)
111
if (
_currentPosition
.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart ||
112
_currentPosition
.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.EmbeddedElement)
118
_currentPosition
.MoveToNextContextPosition(LogicalDirection.Forward);
176
if (
_currentPosition
== null)
184
switch (
_currentPosition
.GetPointerContext(LogicalDirection.Forward))
187
Debug.Assert(
_currentPosition
.GetAdjacentElementFromOuterPosition(LogicalDirection.Forward) is IInputElement);
188
currentElement =
_currentPosition
.GetAdjacentElementFromOuterPosition(LogicalDirection.Forward);
191
Debug.Assert(
_currentPosition
.GetAdjacentElement(LogicalDirection.Forward) is IInputElement);
192
currentElement = (IInputElement)
_currentPosition
.GetAdjacentElement(LogicalDirection.Forward);