MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (34)
129ITextPointer invalidateStart = _segments[startSeg].Segment.Start;
180ITextPointer invalidateStart = _segments[startSeg].Segment.Start;
208ITextPointer invalidateStart = _segments[startSeg].Segment.Start;
252if ((highlightSegment.Segment.Start.CompareTo(textPosition) > 0) ||
253((highlightSegment.Segment.Start.CompareTo(textPosition) == 0) && (direction == LogicalDirection.Backward)))
363if (highlightSegment.Segment.Start.CompareTo(rangeSegment.Start) <= 0)
365if (highlightSegment.Segment.End.CompareTo(rangeSegment.Start) > 0)
370IList<HighlightSegment> res = highlightSegment.Split(rangeSegment.Start, rangeSegment.End, highlightRange);
386(rangeSegment.End.CompareTo(rangeEnumerator.Current.Start) <= 0),
398invalidateStart = highlightSegment.Segment.Start;
410invalidateStart = rangeSegment.Start;
412if (rangeSegment.End.CompareTo(highlightSegment.Segment.Start) > 0)
415HighlightSegment temp = new HighlightSegment(rangeSegment.Start, highlightSegment.Segment.Start, highlightRange);
419rangeSegment = new TextSegment(highlightSegment.Segment.Start, rangeSegment.End);
425_segments.Insert(ind++, new HighlightSegment(rangeSegment.Start, rangeSegment.End, highlightRange));
436invalidateStart = rangeSegment.Start;
437_segments.Insert(ind++, new HighlightSegment(rangeSegment.Start, rangeSegment.End, highlightRange));
443_segments.Insert(ind++, new HighlightSegment(rangeEnumerator.Current.Start, rangeEnumerator.Current.End, highlightRange));
464if (pos.CompareTo(highlightSegment.Segment.Start) >= 0)
471return highlightSegment.Segment.Start;
490if (pos.CompareTo(highlightSegment.Segment.Start) > 0)
491return highlightSegment.Segment.Start;
510if (highlightSegment.Segment.Start.CompareTo(start) == 0)
770if ((ps.CompareTo(_segment.Start) == 0) || (ps.CompareTo(_segment.End) == 0))
772if (((ps.CompareTo(_segment.Start) == 0) && (side == LogicalDirection.Forward)) ||
782res.Add(new HighlightSegment(_segment.Start, ps, _owners));
806if ((_segment.Start.CompareTo(ps1) > 0) || (_segment.End.CompareTo(ps1) < 0))
809if (_segment.Start.CompareTo(ps1) < 0)
811res.Add(new HighlightSegment(_segment.Start, ps1, _owners));
863else if ((res[0].Segment.Start.CompareTo(ps1) == 0) ||
959pageGeometry = view.GetTightBoundingGeometryFromTextPositions(segment.Start, segment.End);
993ITextPointer cursor = _segment.Start.CreatePointer();
System\Windows\Documents\TextRange.cs (6)
386return _textSegments[0].Start is TextPointer;
1644TextRangeEdit.SetParagraphProperty((TextPointer)textSegment.Start, (TextPointer)textSegment.End, formattingProperty, value, propertyValueAction);
1648TextRangeEdit.SetInlineProperty((TextPointer)textSegment.Start, (TextPointer)textSegment.End, formattingProperty, value, propertyValueAction);
1653TextRangeEdit.SetInlineProperty((TextPointer)textSegment.Start, (TextPointer)textSegment.End, formattingProperty, value, propertyValueAction);
1665(FlowDirection)textSegment.Start.GetValue(Paragraph.FlowDirectionProperty) == FlowDirection.RightToLeft)
1670TextRangeEdit.SetParagraphProperty((TextPointer)textSegment.Start, (TextPointer)textSegment.End, formattingProperty, value, propertyValueAction);
System\Windows\Documents\TextRangeSerialization.cs (4)
359ITextPointer pointer = textSegment.Start.CreatePointer();
368ITextRange textRange = new TextRange(textSegment.Start, textSegment.End);
370elementLevel += WriteOpeningTags(textRange, textSegment.Start, pointer, xmlWriter, xamlTypeMapper, /*reduceElement:*/wpfPayload == null, out ignoreWriteHyperlinkEnd, ref ignoreList, preserveTextElements);
374WriteXamlTextSegment(xmlWriter, textSegment.Start, textSegment.End, xamlTypeMapper, ref elementLevel, wpfPayload, ignoreWriteHyperlinkEnd, ignoreList, preserveTextElements);