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)
67if (_currentPosition == null) 87Debug.Assert(((ITextPointer)_currentPosition).CompareTo(_textSegments[_currentTextSegment].Start) >= 0 && 88((ITextPointer)_currentPosition).CompareTo(_textSegments[_currentTextSegment].End) < 0); 92_currentPosition.MoveToNextContextPosition(LogicalDirection.Forward); 98Debug.Assert(((ITextPointer)_currentPosition).CompareTo(_textSegments[_currentTextSegment].Start) >= 0); 99while (((ITextPointer)_currentPosition).CompareTo(_textSegments[_currentTextSegment].End) < 0) 101if (_currentPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart || 102_currentPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.EmbeddedElement) 108_currentPosition.MoveToNextContextPosition(LogicalDirection.Forward); 165if (_currentPosition == null) 173switch (_currentPosition.GetPointerContext(LogicalDirection.Forward)) 176Debug.Assert(_currentPosition.GetAdjacentElementFromOuterPosition(LogicalDirection.Forward) is IInputElement); 177currentElement = _currentPosition.GetAdjacentElementFromOuterPosition(LogicalDirection.Forward); 180Debug.Assert(_currentPosition.GetAdjacentElement(LogicalDirection.Forward) is IInputElement); 181currentElement = (IInputElement)_currentPosition.GetAdjacentElement(LogicalDirection.Forward);