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)
83if (_segments.Count == 0) 122ITextPointer invalidateStart = _segments[startSeg].Segment.Start; 123ITextPointer invalidateEnd = _segments[endSeg].Segment.End; 126HighlightSegment highlightSegment = _segments[i]; 130_segments.Remove(highlightSegment); 169_segments[seg].UpdateOwners(); 173ITextPointer invalidateStart = _segments[startSeg].Segment.Start; 174ITextPointer invalidateEnd = _segments[endSeg].Segment.End; 201ITextPointer invalidateStart = _segments[startSeg].Segment.Start; 202ITextPointer invalidateEnd = _segments[endSeg].Segment.End; 208_segments[i].AddActiveOwner(highlightRange); 210_segments[i].RemoveActiveOwner(highlightRange); 242for (int i = 0; i < _segments.Count; i++) 244highlightSegment = _segments[i]; 351while ((ind < _segments.Count) && (!rangeSegment.IsNull)) 353HighlightSegment 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)); 442if (ind == _segments.Count) ind--; 443invalidateEnd = _segments[ind].Segment.End; 454for (int i = 0; i < _segments.Count; i++) 456HighlightSegment highlightSegment = _segments[i]; 478for (int i = _segments.Count - 1; i >= 0; i--) 480HighlightSegment highlightSegment = _segments[i]; 500for (int i = 0; i < _segments.Count; i++) 502HighlightSegment highlightSegment = _segments[i];