1 write to _segment
PresentationFramework (1)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (1)
650
_segment
= new TextSegment(start, end);
22 references to _segment
PresentationFramework (22)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (22)
770
if ((ps.CompareTo(
_segment
.Start) == 0) || (ps.CompareTo(
_segment
.End) == 0))
772
if (((ps.CompareTo(
_segment
.Start) == 0) && (side == LogicalDirection.Forward)) ||
773
((ps.CompareTo(
_segment
.End) == 0) && (side == LogicalDirection.Backward)))
779
else if (
_segment
.Contains(ps))
782
res.Add(new HighlightSegment(
_segment
.Start, ps, _owners));
783
res.Add(new HighlightSegment(ps,
_segment
.End, _owners));
806
if ((
_segment
.Start.CompareTo(ps1) > 0) || (
_segment
.End.CompareTo(ps1) < 0))
809
if (
_segment
.Start.CompareTo(ps1) < 0)
811
res.Add(new HighlightSegment(
_segment
.Start, ps1, _owners));
817
if (
_segment
.End.CompareTo(ps1) > 0)
819
res.Add(new HighlightSegment(ps1,
_segment
.End, _owners));
828
else if (
_segment
.Contains(ps1))
990
Debug.Assert(!
_segment
.IsNull, "null TextSegment");
993
ITextPointer cursor =
_segment
.Start.CreatePointer();
996
while (cursor.CompareTo(
_segment
.End) < 0)
1013
CloseSegment(ref segmentStart, cursor,
_segment
.End);
1031
CloseSegment(ref segmentStart, cursor,
_segment
.End);
1052
CloseSegment(ref segmentStart, cursor,
_segment
.End);
1123
GetSegmentGeometry(geometry,
_segment
, parentView);
1150
return
_segment
;