1 write to _segment
PresentationFramework (1)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (1)
643_segment = new TextSegment(start, end);
22 references to _segment
PresentationFramework (22)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (22)
763if ((ps.CompareTo(_segment.Start) == 0) || (ps.CompareTo(_segment.End) == 0)) 765if (((ps.CompareTo(_segment.Start) == 0) && (side == LogicalDirection.Forward)) || 766((ps.CompareTo(_segment.End) == 0) && (side == LogicalDirection.Backward))) 772else if (_segment.Contains(ps)) 775res.Add(new HighlightSegment(_segment.Start, ps, _owners)); 776res.Add(new HighlightSegment(ps, _segment.End, _owners)); 799if ((_segment.Start.CompareTo(ps1) > 0) || (_segment.End.CompareTo(ps1) < 0)) 802if (_segment.Start.CompareTo(ps1) < 0) 804res.Add(new HighlightSegment(_segment.Start, ps1, _owners)); 810if (_segment.End.CompareTo(ps1) > 0) 812res.Add(new HighlightSegment(ps1, _segment.End, _owners)); 821else if (_segment.Contains(ps1)) 983Debug.Assert(!_segment.IsNull, "null TextSegment"); 986ITextPointer cursor = _segment.Start.CreatePointer(); 989while (cursor.CompareTo(_segment.End) < 0) 1006CloseSegment(ref segmentStart, cursor, _segment.End); 1024CloseSegment(ref segmentStart, cursor, _segment.End); 1045CloseSegment(ref segmentStart, cursor, _segment.End); 1116GetSegmentGeometry(geometry, _segment, parentView); 1143return _segment;