2 writes to _textSegments
PresentationFramework (2)
MS\Internal\Documents\HostedElements.cs (2)
36
_textSegments
= textSegments;
54
_textSegments
= null;
14 references to _textSegments
PresentationFramework (14)
MS\Internal\Documents\HostedElements.cs (14)
71
ObjectDisposedException.ThrowIf(
_textSegments
== null, typeof(HostedElements));
73
if (
_textSegments
.Count == 0)
82
if (
_textSegments
[0].Start is TextPointer)
84
_currentPosition = new TextPointer(
_textSegments
[0].Start as TextPointer);
93
else if (_currentTextSegment <
_textSegments
.Count)
97
Debug.Assert(((ITextPointer)_currentPosition).CompareTo(
_textSegments
[_currentTextSegment].Start) >= 0 &&
98
((ITextPointer)_currentPosition).CompareTo(
_textSegments
[_currentTextSegment].End) < 0);
106
while (_currentTextSegment <
_textSegments
.Count)
108
Debug.Assert(((ITextPointer)_currentPosition).CompareTo(
_textSegments
[_currentTextSegment].Start) >= 0);
109
while (((ITextPointer)_currentPosition).CompareTo(
_textSegments
[_currentTextSegment].End) < 0)
124
if (_currentTextSegment <
_textSegments
.Count)
127
if (
_textSegments
[_currentTextSegment].Start is TextPointer)
129
_currentPosition = new TextPointer(
_textSegments
[_currentTextSegment].Start as TextPointer);
169
if (
_textSegments
== null)