32 references to TextSegment
PresentationFramework (32)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (5)
386rangeSegment = new TextSegment(highlightSegment.Segment.End, rangeSegment.End); 412rangeSegment = new TextSegment(highlightSegment.Segment.Start, rangeSegment.End); 555TextSegment[] rangeArray = new TextSegment[] { new TextSegment(start, end) }; 643_segment = new TextSegment(start, end); 1075_contentSegments.Add(new TextSegment(segmentStart, segmentEnd));
MS\Internal\Annotations\TextAnchor.cs (2)
53_segments.Add(new TextSegment(segment.Start, segment.End)); 690return new TextSegment(start, end);
MS\Internal\Documents\TextDocumentView.cs (1)
2362lineRange = new TextSegment(blockUIContainer.ContentStart.CreatePointer(LogicalDirection.Forward), blockUIContainer.ContentEnd.CreatePointer(LogicalDirection.Backward));
System\Windows\Controls\TextBlock.cs (1)
1858TextSegment textSegment = new TextSegment(_complexContent.TextContainer.Start, _complexContent.TextContainer.End);
System\Windows\Documents\DocumentSequenceTextContainer.cs (2)
748rangeArray.Add(new TextSegment(tpChildStart, tpChildEnd)); 768rangeArray.Add(new TextSegment(tpChildStart, tpChildEnd));
System\Windows\Documents\Highlights.cs (1)
366ranges.Add(new TextSegment(highlightRangeStart.CreateDynamicTextPointer(LogicalDirection.Forward), highlightTransitionPosition.CreateDynamicTextPointer(LogicalDirection.Forward)));
System\Windows\Documents\SpellerHighlightLayer.cs (1)
206list.Add(new TextSegment(start, end));
System\windows\Documents\TextEditorSelection.cs (2)
117lineRange = new TextSegment(lineStart, lineEnd); 123return new TextSegment(textRange.Start, textRange.End);
System\Windows\Documents\TextPointerBase.cs (2)
534return new TextSegment(thisPosition, thisPosition); 581return new TextSegment(wordStart, wordEnd);
System\Windows\Documents\TextRangeBase.cs (1)
1779thisRange._TextSegments.Add(new TextSegment(start, end));
System\Windows\Documents\TextRangeEditTables.cs (3)
1972return new TextSegment(startPosition, endPosition); 1976return new TextSegment(startPosition, startPosition); 2004return new TextSegment(start, end);
System\windows\Documents\TextSelection.cs (7)
894anchorWordRange = new TextSegment(anchorPosition, anchorPosition); 895cursorWordRange = new TextSegment(cursorPosition, cursorPosition); 951anchorWordRange = new TextSegment(anchorPosition, anchorPosition); 952cursorWordRange = new TextSegment(cursorPosition, cursorPosition); 970anchorWordRange = new TextSegment(anchorPosition, anchorPosition); 976cursorWordRange = new TextSegment(cursorPosition, cursorPosition); 988cursorWordRange = new TextSegment(cursorPosition, cursorPosition);
System\windows\Documents\TextSelectionHighlightLayer.cs (4)
336rangeArray.Add(new TextSegment(invalidRangeRightStart, invalidRangeRightEnd)); 341rangeArray.Add(new TextSegment(invalidRangeLeftStart, invalidRangeLeftEnd)); 346rangeArray.Add(new TextSegment(invalidRangeLeftStart, invalidRangeLeftEnd)); 347rangeArray.Add(new TextSegment(invalidRangeRightStart, invalidRangeRightEnd));