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)
85if (_currentPosition == null) 105Debug.Assert(((ITextPointer)_currentPosition).CompareTo(_textSegments[_currentTextSegment].Start) >= 0 && 106((ITextPointer)_currentPosition).CompareTo(_textSegments[_currentTextSegment].End) < 0); 110_currentPosition.MoveToNextContextPosition(LogicalDirection.Forward); 116Debug.Assert(((ITextPointer)_currentPosition).CompareTo(_textSegments[_currentTextSegment].Start) >= 0); 117while (((ITextPointer)_currentPosition).CompareTo(_textSegments[_currentTextSegment].End) < 0) 119if (_currentPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart || 120_currentPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.EmbeddedElement) 126_currentPosition.MoveToNextContextPosition(LogicalDirection.Forward); 184if (_currentPosition == null) 192switch (_currentPosition.GetPointerContext(LogicalDirection.Forward)) 195Debug.Assert(_currentPosition.GetAdjacentElementFromOuterPosition(LogicalDirection.Forward) is IInputElement); 196currentElement = _currentPosition.GetAdjacentElementFromOuterPosition(LogicalDirection.Forward); 199Debug.Assert(_currentPosition.GetAdjacentElement(LogicalDirection.Forward) is IInputElement); 200currentElement = (IInputElement)_currentPosition.GetAdjacentElement(LogicalDirection.Forward);