1 write to _segments
PresentationFramework (1)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (1)
37
_segments
= new List<HighlightSegment>();
30 references to _segments
PresentationFramework (30)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (30)
83
if (
_segments
.Count == 0)
122
ITextPointer invalidateStart =
_segments
[startSeg].Segment.Start;
123
ITextPointer invalidateEnd =
_segments
[endSeg].Segment.End;
126
HighlightSegment highlightSegment =
_segments
[i];
130
_segments
.Remove(highlightSegment);
169
_segments
[seg].UpdateOwners();
173
ITextPointer invalidateStart =
_segments
[startSeg].Segment.Start;
174
ITextPointer invalidateEnd =
_segments
[endSeg].Segment.End;
201
ITextPointer invalidateStart =
_segments
[startSeg].Segment.Start;
202
ITextPointer invalidateEnd =
_segments
[endSeg].Segment.End;
208
_segments
[i].AddActiveOwner(highlightRange);
210
_segments
[i].RemoveActiveOwner(highlightRange);
242
for (int i = 0; i <
_segments
.Count; i++)
244
highlightSegment =
_segments
[i];
351
while ((ind <
_segments
.Count) && (!rangeSegment.IsNull))
353
HighlightSegment highlightSegment =
_segments
[ind];
369
_segments
.Remove(highlightSegment);
370
_segments
.InsertRange(ind, res);
409
_segments
.Insert(ind++, temp);
418
_segments
.Insert(ind++, new HighlightSegment(rangeSegment.Start, rangeSegment.End, highlightRange));
430
_segments
.Insert(ind++, new HighlightSegment(rangeSegment.Start, rangeSegment.End, highlightRange));
436
_segments
.Insert(ind++, new HighlightSegment(rangeEnumerator.Current.Start, rangeEnumerator.Current.End, highlightRange));
442
if (ind ==
_segments
.Count) ind--;
443
invalidateEnd =
_segments
[ind].Segment.End;
454
for (int i = 0; i <
_segments
.Count; i++)
456
HighlightSegment highlightSegment =
_segments
[i];
478
for (int i =
_segments
.Count - 1; i >= 0; i--)
480
HighlightSegment highlightSegment =
_segments
[i];
500
for (int i = 0; i <
_segments
.Count; i++)
502
HighlightSegment highlightSegment =
_segments
[i];