32 references to TextSegment
PresentationFramework (32)
src\Framework\MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (5)
401rangeSegment = new TextSegment(highlightSegment.Segment.End, rangeSegment.End); 428rangeSegment = new TextSegment(highlightSegment.Segment.Start, rangeSegment.End); 576TextSegment[] rangeArray = new TextSegment[] { new TextSegment(start, end) }; 664_segment = new TextSegment(start, end); 1104_contentSegments.Add(new TextSegment(segmentStart, segmentEnd));
src\Framework\MS\Internal\Annotations\TextAnchor.cs (2)
59_segments.Add(new TextSegment(segment.Start, segment.End)); 700return new TextSegment(start, end);
src\Framework\MS\Internal\Documents\TextDocumentView.cs (1)
2410lineRange = new TextSegment(blockUIContainer.ContentStart.CreatePointer(LogicalDirection.Forward), blockUIContainer.ContentEnd.CreatePointer(LogicalDirection.Backward));
src\Framework\System\Windows\Controls\TextBlock.cs (1)
1964TextSegment textSegment = new TextSegment(_complexContent.TextContainer.Start, _complexContent.TextContainer.End);
src\Framework\System\Windows\Documents\DocumentSequenceTextContainer.cs (2)
773rangeArray.Add(new TextSegment(tpChildStart, tpChildEnd)); 793rangeArray.Add(new TextSegment(tpChildStart, tpChildEnd));
src\Framework\System\Windows\Documents\Highlights.cs (1)
373ranges.Add(new TextSegment(highlightRangeStart.CreateDynamicTextPointer(LogicalDirection.Forward), highlightTransitionPosition.CreateDynamicTextPointer(LogicalDirection.Forward)));
src\Framework\System\Windows\Documents\SpellerHighlightLayer.cs (1)
207list.Add(new TextSegment(start, end));
src\Framework\System\windows\Documents\TextEditorSelection.cs (2)
140lineRange = new TextSegment(lineStart, lineEnd); 146return new TextSegment(textRange.Start, textRange.End);
src\Framework\System\Windows\Documents\TextPointerBase.cs (2)
538return new TextSegment(thisPosition, thisPosition); 585return new TextSegment(wordStart, wordEnd);
src\Framework\System\Windows\Documents\TextRangeBase.cs (1)
1811thisRange._TextSegments.Add(new TextSegment(start, end));
src\Framework\System\Windows\Documents\TextRangeEditTables.cs (3)
1973return new TextSegment(startPosition, endPosition); 1977return new TextSegment(startPosition, startPosition); 2005return new TextSegment(start, end);
src\Framework\System\windows\Documents\TextSelection.cs (7)
915anchorWordRange = new TextSegment(anchorPosition, anchorPosition); 916cursorWordRange = new TextSegment(cursorPosition, cursorPosition); 972anchorWordRange = new TextSegment(anchorPosition, anchorPosition); 973cursorWordRange = new TextSegment(cursorPosition, cursorPosition); 991anchorWordRange = new TextSegment(anchorPosition, anchorPosition); 997cursorWordRange = new TextSegment(cursorPosition, cursorPosition); 1009cursorWordRange = new TextSegment(cursorPosition, cursorPosition);
src\Framework\System\windows\Documents\TextSelectionHighlightLayer.cs (4)
344rangeArray.Add(new TextSegment(invalidRangeRightStart, invalidRangeRightEnd)); 349rangeArray.Add(new TextSegment(invalidRangeLeftStart, invalidRangeLeftEnd)); 354rangeArray.Add(new TextSegment(invalidRangeLeftStart, invalidRangeLeftEnd)); 355rangeArray.Add(new TextSegment(invalidRangeRightStart, invalidRangeRightEnd));