5 writes to _currentPosition
PresentationFramework (5)
src\Framework\MS\Internal\Documents\HostedElements.cs (5)
42
_currentPosition
= null;
92
_currentPosition
= new TextPointer(_textSegments[0].Start as TextPointer);
97
_currentPosition
= null;
137
_currentPosition
= new TextPointer(_textSegments[_currentTextSegment].Start as TextPointer);
142
_currentPosition
= null;
15 references to _currentPosition
PresentationFramework (15)
src\Framework\MS\Internal\Documents\HostedElements.cs (15)
85
if (
_currentPosition
== null)
105
Debug.Assert(((ITextPointer)
_currentPosition
).CompareTo(_textSegments[_currentTextSegment].Start) >= 0 &&
106
((ITextPointer)
_currentPosition
).CompareTo(_textSegments[_currentTextSegment].End) < 0);
110
_currentPosition
.MoveToNextContextPosition(LogicalDirection.Forward);
116
Debug.Assert(((ITextPointer)
_currentPosition
).CompareTo(_textSegments[_currentTextSegment].Start) >= 0);
117
while (((ITextPointer)
_currentPosition
).CompareTo(_textSegments[_currentTextSegment].End) < 0)
119
if (
_currentPosition
.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart ||
120
_currentPosition
.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.EmbeddedElement)
126
_currentPosition
.MoveToNextContextPosition(LogicalDirection.Forward);
184
if (
_currentPosition
== null)
192
switch (
_currentPosition
.GetPointerContext(LogicalDirection.Forward))
195
Debug.Assert(
_currentPosition
.GetAdjacentElementFromOuterPosition(LogicalDirection.Forward) is IInputElement);
196
currentElement =
_currentPosition
.GetAdjacentElementFromOuterPosition(LogicalDirection.Forward);
199
Debug.Assert(
_currentPosition
.GetAdjacentElement(LogicalDirection.Forward) is IInputElement);
200
currentElement = (IInputElement)
_currentPosition
.GetAdjacentElement(LogicalDirection.Forward);