1 write to _segments
PresentationFramework (1)
src\Framework\MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (1)
48
_segments
= new List<HighlightSegment>();
30 references to _segments
PresentationFramework (30)
src\Framework\MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (30)
94
if (
_segments
.Count == 0)
134
ITextPointer invalidateStart =
_segments
[startSeg].Segment.Start;
135
ITextPointer invalidateEnd =
_segments
[endSeg].Segment.End;
138
HighlightSegment highlightSegment =
_segments
[i];
142
_segments
.Remove(highlightSegment);
181
_segments
[seg].UpdateOwners();
185
ITextPointer invalidateStart =
_segments
[startSeg].Segment.Start;
186
ITextPointer invalidateEnd =
_segments
[endSeg].Segment.End;
214
ITextPointer invalidateStart =
_segments
[startSeg].Segment.Start;
215
ITextPointer invalidateEnd =
_segments
[endSeg].Segment.End;
221
_segments
[i].AddActiveOwner(highlightRange);
223
_segments
[i].RemoveActiveOwner(highlightRange);
256
for (int i = 0; i <
_segments
.Count; i++)
258
highlightSegment =
_segments
[i];
366
while ((ind <
_segments
.Count) && (!rangeSegment.IsNull))
368
HighlightSegment highlightSegment =
_segments
[ind];
384
_segments
.Remove(highlightSegment);
385
_segments
.InsertRange(ind, res);
425
_segments
.Insert(ind++, temp);
435
_segments
.Insert(ind++, new HighlightSegment(rangeSegment.Start, rangeSegment.End, highlightRange));
448
_segments
.Insert(ind++, new HighlightSegment(rangeSegment.Start, rangeSegment.End, highlightRange));
454
_segments
.Insert(ind++, new HighlightSegment(rangeEnumerator.Current.Start, rangeEnumerator.Current.End, highlightRange));
460
if (ind ==
_segments
.Count) ind--;
461
invalidateEnd =
_segments
[ind].Segment.End;
472
for (int i = 0; i <
_segments
.Count; i++)
474
HighlightSegment highlightSegment =
_segments
[i];
497
for (int i =
_segments
.Count - 1; i >= 0; i--)
499
HighlightSegment highlightSegment =
_segments
[i];
520
for (int i = 0; i <
_segments
.Count; i++)
522
HighlightSegment highlightSegment =
_segments
[i];