1 write to _segment
PresentationFramework (1)
src\Framework\MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (1)
664
_segment
= new TextSegment(start, end);
22 references to _segment
PresentationFramework (22)
src\Framework\MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (22)
785
if ((ps.CompareTo(
_segment
.Start) == 0) || (ps.CompareTo(
_segment
.End) == 0))
787
if ( ((ps.CompareTo(
_segment
.Start) == 0) && (side == LogicalDirection.Forward)) ||
788
((ps.CompareTo(
_segment
.End) == 0) && (side == LogicalDirection.Backward)) )
794
else if (
_segment
.Contains(ps))
797
res.Add(new HighlightSegment(
_segment
.Start, ps, _owners));
798
res.Add(new HighlightSegment(ps,
_segment
.End, _owners));
821
if ((
_segment
.Start.CompareTo(ps1) > 0) || (
_segment
.End.CompareTo(ps1) < 0))
824
if (
_segment
.Start.CompareTo(ps1) < 0)
826
res.Add(new HighlightSegment(
_segment
.Start, ps1, _owners));
832
if (
_segment
.End.CompareTo(ps1) > 0)
834
res.Add(new HighlightSegment(ps1,
_segment
.End, _owners));
843
else if (
_segment
.Contains(ps1))
1007
Debug.Assert(!
_segment
.IsNull, "null TextSegment");
1010
ITextPointer cursor =
_segment
.Start.CreatePointer();
1013
while (cursor.CompareTo(
_segment
.End) < 0)
1031
CloseSegment(ref segmentStart, cursor,
_segment
.End);
1050
CloseSegment(ref segmentStart, cursor,
_segment
.End);
1071
CloseSegment(ref segmentStart, cursor,
_segment
.End);
1144
GetSegmentGeometry(geometry,
_segment
, parentView);
1171
return
_segment
;