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