32 references to TextSegment
PresentationFramework (32)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (5)
393
rangeSegment = new
TextSegment
(highlightSegment.Segment.End, rangeSegment.End);
419
rangeSegment = new
TextSegment
(highlightSegment.Segment.Start, rangeSegment.End);
562
TextSegment[] rangeArray = new TextSegment[] { new
TextSegment
(start, end) };
650
_segment = new
TextSegment
(start, end);
1085
_contentSegments.Add(new
TextSegment
(segmentStart, segmentEnd));
MS\Internal\Annotations\TextAnchor.cs (2)
56
_segments.Add(new
TextSegment
(segment.Start, segment.End));
693
return new
TextSegment
(start, end);
MS\Internal\Documents\TextDocumentView.cs (1)
2402
lineRange = new
TextSegment
(blockUIContainer.ContentStart.CreatePointer(LogicalDirection.Forward), blockUIContainer.ContentEnd.CreatePointer(LogicalDirection.Backward));
System\Windows\Controls\TextBlock.cs (1)
1876
TextSegment textSegment = new
TextSegment
(_complexContent.TextContainer.Start, _complexContent.TextContainer.End);
System\Windows\Documents\DocumentSequenceTextContainer.cs (2)
765
rangeArray.Add(new
TextSegment
(tpChildStart, tpChildEnd));
785
rangeArray.Add(new
TextSegment
(tpChildStart, tpChildEnd));
System\Windows\Documents\Highlights.cs (1)
367
ranges.Add(new
TextSegment
(highlightRangeStart.CreateDynamicTextPointer(LogicalDirection.Forward), highlightTransitionPosition.CreateDynamicTextPointer(LogicalDirection.Forward)));
System\Windows\Documents\SpellerHighlightLayer.cs (1)
207
list.Add(new
TextSegment
(start, end));
System\windows\Documents\TextEditorSelection.cs (2)
132
lineRange = new
TextSegment
(lineStart, lineEnd);
138
return new
TextSegment
(textRange.Start, textRange.End);
System\Windows\Documents\TextPointerBase.cs (2)
536
return new
TextSegment
(thisPosition, thisPosition);
583
return new
TextSegment
(wordStart, wordEnd);
System\Windows\Documents\TextRangeBase.cs (1)
1783
thisRange._TextSegments.Add(new
TextSegment
(start, end));
System\Windows\Documents\TextRangeEditTables.cs (3)
1970
return new
TextSegment
(startPosition, endPosition);
1974
return new
TextSegment
(startPosition, startPosition);
2002
return new
TextSegment
(start, end);
System\windows\Documents\TextSelection.cs (7)
912
anchorWordRange = new
TextSegment
(anchorPosition, anchorPosition);
913
cursorWordRange = new
TextSegment
(cursorPosition, cursorPosition);
969
anchorWordRange = new
TextSegment
(anchorPosition, anchorPosition);
970
cursorWordRange = new
TextSegment
(cursorPosition, cursorPosition);
988
anchorWordRange = new
TextSegment
(anchorPosition, anchorPosition);
994
cursorWordRange = new
TextSegment
(cursorPosition, cursorPosition);
1006
cursorWordRange = new
TextSegment
(cursorPosition, cursorPosition);
System\windows\Documents\TextSelectionHighlightLayer.cs (4)
338
rangeArray.Add(new
TextSegment
(invalidRangeRightStart, invalidRangeRightEnd));
343
rangeArray.Add(new
TextSegment
(invalidRangeLeftStart, invalidRangeLeftEnd));
348
rangeArray.Add(new
TextSegment
(invalidRangeLeftStart, invalidRangeLeftEnd));
349
rangeArray.Add(new
TextSegment
(invalidRangeRightStart, invalidRangeRightEnd));