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)
77if (_currentPosition == null) 97Debug.Assert(((ITextPointer)_currentPosition).CompareTo(_textSegments[_currentTextSegment].Start) >= 0 && 98((ITextPointer)_currentPosition).CompareTo(_textSegments[_currentTextSegment].End) < 0); 102_currentPosition.MoveToNextContextPosition(LogicalDirection.Forward); 108Debug.Assert(((ITextPointer)_currentPosition).CompareTo(_textSegments[_currentTextSegment].Start) >= 0); 109while (((ITextPointer)_currentPosition).CompareTo(_textSegments[_currentTextSegment].End) < 0) 111if (_currentPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart || 112_currentPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.EmbeddedElement) 118_currentPosition.MoveToNextContextPosition(LogicalDirection.Forward); 176if (_currentPosition == null) 184switch (_currentPosition.GetPointerContext(LogicalDirection.Forward)) 187Debug.Assert(_currentPosition.GetAdjacentElementFromOuterPosition(LogicalDirection.Forward) is IInputElement); 188currentElement = _currentPosition.GetAdjacentElementFromOuterPosition(LogicalDirection.Forward); 191Debug.Assert(_currentPosition.GetAdjacentElement(LogicalDirection.Forward) is IInputElement); 192currentElement = (IInputElement)_currentPosition.GetAdjacentElement(LogicalDirection.Forward);