MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (34)
122ITextPointer invalidateStart = _segments[startSeg].Segment.Start;
173ITextPointer invalidateStart = _segments[startSeg].Segment.Start;
201ITextPointer invalidateStart = _segments[startSeg].Segment.Start;
245if ((highlightSegment.Segment.Start.CompareTo(textPosition) > 0) ||
246((highlightSegment.Segment.Start.CompareTo(textPosition) == 0) && (direction == LogicalDirection.Backward)))
356if (highlightSegment.Segment.Start.CompareTo(rangeSegment.Start) <= 0)
358if (highlightSegment.Segment.End.CompareTo(rangeSegment.Start) > 0)
363IList<HighlightSegment> res = highlightSegment.Split(rangeSegment.Start, rangeSegment.End, highlightRange);
379(rangeSegment.End.CompareTo(rangeEnumerator.Current.Start) <= 0),
391invalidateStart = highlightSegment.Segment.Start;
403invalidateStart = rangeSegment.Start;
405if (rangeSegment.End.CompareTo(highlightSegment.Segment.Start) > 0)
408HighlightSegment temp = new HighlightSegment(rangeSegment.Start, highlightSegment.Segment.Start, highlightRange);
412rangeSegment = new TextSegment(highlightSegment.Segment.Start, rangeSegment.End);
418_segments.Insert(ind++, new HighlightSegment(rangeSegment.Start, rangeSegment.End, highlightRange));
429invalidateStart = rangeSegment.Start;
430_segments.Insert(ind++, new HighlightSegment(rangeSegment.Start, rangeSegment.End, highlightRange));
436_segments.Insert(ind++, new HighlightSegment(rangeEnumerator.Current.Start, rangeEnumerator.Current.End, highlightRange));
457if (pos.CompareTo(highlightSegment.Segment.Start) >= 0)
464return highlightSegment.Segment.Start;
483if (pos.CompareTo(highlightSegment.Segment.Start) > 0)
484return highlightSegment.Segment.Start;
503if (highlightSegment.Segment.Start.CompareTo(start) == 0)
763if ((ps.CompareTo(_segment.Start) == 0) || (ps.CompareTo(_segment.End) == 0))
765if (((ps.CompareTo(_segment.Start) == 0) && (side == LogicalDirection.Forward)) ||
775res.Add(new HighlightSegment(_segment.Start, ps, _owners));
799if ((_segment.Start.CompareTo(ps1) > 0) || (_segment.End.CompareTo(ps1) < 0))
802if (_segment.Start.CompareTo(ps1) < 0)
804res.Add(new HighlightSegment(_segment.Start, ps1, _owners));
856else if ((res[0].Segment.Start.CompareTo(ps1) == 0) ||
952pageGeometry = view.GetTightBoundingGeometryFromTextPositions(segment.Start, segment.End);
986ITextPointer cursor = _segment.Start.CreatePointer();
System\Windows\Documents\TextRange.cs (6)
377return _textSegments[0].Start is TextPointer;
1634TextRangeEdit.SetParagraphProperty((TextPointer)textSegment.Start, (TextPointer)textSegment.End, formattingProperty, value, propertyValueAction);
1638TextRangeEdit.SetInlineProperty((TextPointer)textSegment.Start, (TextPointer)textSegment.End, formattingProperty, value, propertyValueAction);
1643TextRangeEdit.SetInlineProperty((TextPointer)textSegment.Start, (TextPointer)textSegment.End, formattingProperty, value, propertyValueAction);
1655(FlowDirection)textSegment.Start.GetValue(Paragraph.FlowDirectionProperty) == FlowDirection.RightToLeft)
1660TextRangeEdit.SetParagraphProperty((TextPointer)textSegment.Start, (TextPointer)textSegment.End, formattingProperty, value, propertyValueAction);
System\Windows\Documents\TextRangeSerialization.cs (4)
353ITextPointer pointer = textSegment.Start.CreatePointer();
362ITextRange textRange = new TextRange(textSegment.Start, textSegment.End);
364elementLevel += WriteOpeningTags(textRange, textSegment.Start, pointer, xmlWriter, xamlTypeMapper, /*reduceElement:*/wpfPayload == null, out ignoreWriteHyperlinkEnd, ref ignoreList, preserveTextElements);
368WriteXamlTextSegment(xmlWriter, textSegment.Start, textSegment.End, xamlTypeMapper, ref elementLevel, wpfPayload, ignoreWriteHyperlinkEnd, ignoreList, preserveTextElements);