32 references to Segment
PresentationFramework (32)
src\Framework\MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (32)
134
ITextPointer invalidateStart = _segments[startSeg].
Segment
.Start;
135
ITextPointer invalidateEnd = _segments[endSeg].
Segment
.End;
185
ITextPointer invalidateStart = _segments[startSeg].
Segment
.Start;
186
ITextPointer invalidateEnd = _segments[endSeg].
Segment
.End;
214
ITextPointer invalidateStart = _segments[startSeg].
Segment
.Start;
215
ITextPointer invalidateEnd = _segments[endSeg].
Segment
.End;
259
if ((highlightSegment.
Segment
.Start.CompareTo(textPosition) > 0) ||
260
((highlightSegment.
Segment
.Start.CompareTo(textPosition) == 0) && (direction == LogicalDirection.Backward)))
266
if ((highlightSegment.
Segment
.End.CompareTo(textPosition) > 0) ||
267
((highlightSegment.
Segment
.End.CompareTo(textPosition) == 0) && (direction == LogicalDirection.Backward)))
371
if (highlightSegment.
Segment
.Start.CompareTo(rangeSegment.Start) <= 0)
373
if (highlightSegment.
Segment
.End.CompareTo(rangeSegment.Start) > 0)
389
if (rangeSegment.End.CompareTo(highlightSegment.
Segment
.End) <= 0)
401
rangeSegment = new TextSegment(highlightSegment.
Segment
.End, rangeSegment.End);
406
invalidateStart = highlightSegment.
Segment
.Start;
421
if (rangeSegment.End.CompareTo(highlightSegment.
Segment
.Start) > 0)
424
HighlightSegment temp = new HighlightSegment(rangeSegment.Start, highlightSegment.
Segment
.Start, highlightRange);
428
rangeSegment = new TextSegment(highlightSegment.
Segment
.Start, rangeSegment.End);
461
invalidateEnd = _segments[ind].
Segment
.End;
475
if (pos.CompareTo(highlightSegment.
Segment
.Start) >= 0)
477
if (pos.CompareTo(highlightSegment.
Segment
.End) < 0)
478
return highlightSegment.
Segment
.End;
482
return highlightSegment.
Segment
.Start;
500
if (pos.CompareTo(highlightSegment.
Segment
.End) <= 0)
502
if (pos.CompareTo(highlightSegment.
Segment
.Start) > 0)
503
return highlightSegment.
Segment
.Start;
507
return highlightSegment.
Segment
.End;
523
if (highlightSegment.
Segment
.Start.CompareTo(start) == 0)
525
if (highlightSegment.
Segment
.End.CompareTo(end) == 0)
848
if (r1[i].
Segment
.Contains(ps2))
879
else if ((res[0].
Segment
.Start.CompareTo(ps1) == 0) ||
880
(res[0].
Segment
.End.CompareTo(ps2) == 0))