src\Framework\MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (34)
134ITextPointer invalidateStart = _segments[startSeg].Segment.Start;
185ITextPointer invalidateStart = _segments[startSeg].Segment.Start;
214ITextPointer invalidateStart = _segments[startSeg].Segment.Start;
259if ((highlightSegment.Segment.Start.CompareTo(textPosition) > 0) ||
260((highlightSegment.Segment.Start.CompareTo(textPosition) == 0) && (direction == LogicalDirection.Backward)))
371if (highlightSegment.Segment.Start.CompareTo(rangeSegment.Start) <= 0)
373if (highlightSegment.Segment.End.CompareTo(rangeSegment.Start) > 0)
378IList<HighlightSegment> res = highlightSegment.Split(rangeSegment.Start, rangeSegment.End, highlightRange);
394(rangeSegment.End.CompareTo(rangeEnumerator.Current.Start) <= 0),
406invalidateStart = highlightSegment.Segment.Start;
419invalidateStart = rangeSegment.Start;
421if (rangeSegment.End.CompareTo(highlightSegment.Segment.Start) > 0)
424HighlightSegment temp = new HighlightSegment(rangeSegment.Start, highlightSegment.Segment.Start, highlightRange);
428rangeSegment = new TextSegment(highlightSegment.Segment.Start, rangeSegment.End);
435_segments.Insert(ind++, new HighlightSegment(rangeSegment.Start, rangeSegment.End, highlightRange));
447invalidateStart = rangeSegment.Start;
448_segments.Insert(ind++, new HighlightSegment(rangeSegment.Start, rangeSegment.End, highlightRange));
454_segments.Insert(ind++, new HighlightSegment(rangeEnumerator.Current.Start, rangeEnumerator.Current.End, highlightRange));
475if (pos.CompareTo(highlightSegment.Segment.Start) >= 0)
482return highlightSegment.Segment.Start;
502if (pos.CompareTo(highlightSegment.Segment.Start) > 0)
503return highlightSegment.Segment.Start;
523if (highlightSegment.Segment.Start.CompareTo(start) == 0)
785if ((ps.CompareTo(_segment.Start) == 0) || (ps.CompareTo(_segment.End) == 0))
787if ( ((ps.CompareTo(_segment.Start) == 0) && (side == LogicalDirection.Forward)) ||
797res.Add(new HighlightSegment(_segment.Start, ps, _owners));
821if ((_segment.Start.CompareTo(ps1) > 0) || (_segment.End.CompareTo(ps1) < 0))
824if (_segment.Start.CompareTo(ps1) < 0)
826res.Add(new HighlightSegment(_segment.Start, ps1, _owners));
879else if ((res[0].Segment.Start.CompareTo(ps1) == 0) ||
976pageGeometry = view.GetTightBoundingGeometryFromTextPositions(segment.Start, segment.End);
1010ITextPointer cursor = _segment.Start.CreatePointer();
src\Framework\System\Windows\Documents\TextRange.cs (6)
376return _textSegments[0].Start is TextPointer;
1641TextRangeEdit.SetParagraphProperty((TextPointer)textSegment.Start, (TextPointer)textSegment.End, formattingProperty, value, propertyValueAction);
1645TextRangeEdit.SetInlineProperty((TextPointer)textSegment.Start, (TextPointer)textSegment.End, formattingProperty, value, propertyValueAction);
1650TextRangeEdit.SetInlineProperty((TextPointer)textSegment.Start, (TextPointer)textSegment.End, formattingProperty, value, propertyValueAction);
1662(FlowDirection)textSegment.Start.GetValue(Paragraph.FlowDirectionProperty) == FlowDirection.RightToLeft)
1667TextRangeEdit.SetParagraphProperty((TextPointer)textSegment.Start, (TextPointer)textSegment.End, formattingProperty, value, propertyValueAction);
src\Framework\System\Windows\Documents\TextRangeSerialization.cs (4)
365ITextPointer pointer = textSegment.Start.CreatePointer();
374ITextRange textRange = new TextRange(textSegment.Start, textSegment.End);
376elementLevel += WriteOpeningTags(textRange, textSegment.Start, pointer, xmlWriter, xamlTypeMapper, /*reduceElement:*/wpfPayload == null, out ignoreWriteHyperlinkEnd, ref ignoreList, preserveTextElements);
380WriteXamlTextSegment(xmlWriter, textSegment.Start, textSegment.End, xamlTypeMapper, ref elementLevel, wpfPayload, ignoreWriteHyperlinkEnd, ignoreList, preserveTextElements);