32 references to Segment
PresentationFramework (32)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (32)
122ITextPointer invalidateStart = _segments[startSeg].Segment.Start; 123ITextPointer invalidateEnd = _segments[endSeg].Segment.End; 173ITextPointer invalidateStart = _segments[startSeg].Segment.Start; 174ITextPointer invalidateEnd = _segments[endSeg].Segment.End; 201ITextPointer invalidateStart = _segments[startSeg].Segment.Start; 202ITextPointer invalidateEnd = _segments[endSeg].Segment.End; 245if ((highlightSegment.Segment.Start.CompareTo(textPosition) > 0) || 246((highlightSegment.Segment.Start.CompareTo(textPosition) == 0) && (direction == LogicalDirection.Backward))) 252if ((highlightSegment.Segment.End.CompareTo(textPosition) > 0) || 253((highlightSegment.Segment.End.CompareTo(textPosition) == 0) && (direction == LogicalDirection.Backward))) 356if (highlightSegment.Segment.Start.CompareTo(rangeSegment.Start) <= 0) 358if (highlightSegment.Segment.End.CompareTo(rangeSegment.Start) > 0) 374if (rangeSegment.End.CompareTo(highlightSegment.Segment.End) <= 0) 386rangeSegment = new TextSegment(highlightSegment.Segment.End, rangeSegment.End); 391invalidateStart = highlightSegment.Segment.Start; 405if (rangeSegment.End.CompareTo(highlightSegment.Segment.Start) > 0) 408HighlightSegment temp = new HighlightSegment(rangeSegment.Start, highlightSegment.Segment.Start, highlightRange); 412rangeSegment = new TextSegment(highlightSegment.Segment.Start, rangeSegment.End); 443invalidateEnd = _segments[ind].Segment.End; 457if (pos.CompareTo(highlightSegment.Segment.Start) >= 0) 459if (pos.CompareTo(highlightSegment.Segment.End) < 0) 460return highlightSegment.Segment.End; 464return highlightSegment.Segment.Start; 481if (pos.CompareTo(highlightSegment.Segment.End) <= 0) 483if (pos.CompareTo(highlightSegment.Segment.Start) > 0) 484return highlightSegment.Segment.Start; 488return highlightSegment.Segment.End; 503if (highlightSegment.Segment.Start.CompareTo(start) == 0) 505if (highlightSegment.Segment.End.CompareTo(end) == 0) 826if (r1[i].Segment.Contains(ps2)) 856else if ((res[0].Segment.Start.CompareTo(ps1) == 0) || 857(res[0].Segment.End.CompareTo(ps2) == 0))