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)
763
if ((ps.CompareTo(
_segment
.Start) == 0) || (ps.CompareTo(
_segment
.End) == 0))
765
if (((ps.CompareTo(
_segment
.Start) == 0) && (side == LogicalDirection.Forward)) ||
766
((ps.CompareTo(
_segment
.End) == 0) && (side == LogicalDirection.Backward)))
772
else if (
_segment
.Contains(ps))
775
res.Add(new HighlightSegment(
_segment
.Start, ps, _owners));
776
res.Add(new HighlightSegment(ps,
_segment
.End, _owners));
799
if ((
_segment
.Start.CompareTo(ps1) > 0) || (
_segment
.End.CompareTo(ps1) < 0))
802
if (
_segment
.Start.CompareTo(ps1) < 0)
804
res.Add(new HighlightSegment(
_segment
.Start, ps1, _owners));
810
if (
_segment
.End.CompareTo(ps1) > 0)
812
res.Add(new HighlightSegment(ps1,
_segment
.End, _owners));
821
else if (
_segment
.Contains(ps1))
983
Debug.Assert(!
_segment
.IsNull, "null TextSegment");
986
ITextPointer cursor =
_segment
.Start.CreatePointer();
989
while (cursor.CompareTo(
_segment
.End) < 0)
1006
CloseSegment(ref segmentStart, cursor,
_segment
.End);
1024
CloseSegment(ref segmentStart, cursor,
_segment
.End);
1045
CloseSegment(ref segmentStart, cursor,
_segment
.End);
1116
GetSegmentGeometry(geometry,
_segment
, parentView);
1143
return
_segment
;