1 write to _segments
PresentationFramework (1)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (1)
44
_segments
= new List<HighlightSegment>();
30 references to _segments
PresentationFramework (30)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (30)
90
if (
_segments
.Count == 0)
129
ITextPointer invalidateStart =
_segments
[startSeg].Segment.Start;
130
ITextPointer invalidateEnd =
_segments
[endSeg].Segment.End;
133
HighlightSegment highlightSegment =
_segments
[i];
137
_segments
.Remove(highlightSegment);
176
_segments
[seg].UpdateOwners();
180
ITextPointer invalidateStart =
_segments
[startSeg].Segment.Start;
181
ITextPointer invalidateEnd =
_segments
[endSeg].Segment.End;
208
ITextPointer invalidateStart =
_segments
[startSeg].Segment.Start;
209
ITextPointer invalidateEnd =
_segments
[endSeg].Segment.End;
215
_segments
[i].AddActiveOwner(highlightRange);
217
_segments
[i].RemoveActiveOwner(highlightRange);
249
for (int i = 0; i <
_segments
.Count; i++)
251
highlightSegment =
_segments
[i];
358
while ((ind <
_segments
.Count) && (!rangeSegment.IsNull))
360
HighlightSegment highlightSegment =
_segments
[ind];
376
_segments
.Remove(highlightSegment);
377
_segments
.InsertRange(ind, res);
416
_segments
.Insert(ind++, temp);
425
_segments
.Insert(ind++, new HighlightSegment(rangeSegment.Start, rangeSegment.End, highlightRange));
437
_segments
.Insert(ind++, new HighlightSegment(rangeSegment.Start, rangeSegment.End, highlightRange));
443
_segments
.Insert(ind++, new HighlightSegment(rangeEnumerator.Current.Start, rangeEnumerator.Current.End, highlightRange));
449
if (ind ==
_segments
.Count) ind--;
450
invalidateEnd =
_segments
[ind].Segment.End;
461
for (int i = 0; i <
_segments
.Count; i++)
463
HighlightSegment highlightSegment =
_segments
[i];
485
for (int i =
_segments
.Count - 1; i >= 0; i--)
487
HighlightSegment highlightSegment =
_segments
[i];
507
for (int i = 0; i <
_segments
.Count; i++)
509
HighlightSegment highlightSegment =
_segments
[i];