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