1 type derived from TextRange
PresentationFramework (1)
System\windows\Documents\TextSelection.cs (1)
26public sealed class TextSelection : TextRange, ITextSelection
47 instantiations of TextRange
PresentationFramework (47)
MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (1)
239textRange = new TextRange(start, end);
MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (4)
204TextRange rtbRange = new TextRange(richTextBox.Document.ContentStart, richTextBox.Document.ContentEnd); 232TextRange rtbRange = new TextRange(document.ContentStart, document.ContentEnd, useRestrictiveXamlXmlReader: true); 260TextRange textRange = new TextRange(richTextBox.Document.ContentStart, richTextBox.Document.ContentEnd); 301TextRange range = new TextRange(document.ContentStart, document.ContentEnd);
System\Windows\Annotations\AnnotationHelper.cs (2)
675ITextRange textRange = new TextRange(start, end); 944ITextRange anchor = new TextRange(selection.Start, selection.End);
System\Windows\Controls\Primitives\TextBoxBase.cs (1)
108TextRange range = new TextRange(_textContainer.End, _textContainer.End)
System\Windows\Controls\RichTextBox.cs (1)
247return (spellingError == null) ? null : new TextRange(spellingError.Start, spellingError.End);
System\Windows\Controls\TextBlock.cs (1)
477return new TextRange(this.ContentStart, this.ContentEnd);
System\Windows\Controls\TextRangeAdaptor.cs (3)
639ITextRange textRange = new TextRange(_start, _end); 851ITextRange textRange = new TextRange(position, position); 1108ITextRange paragraphRange = new TextRange(position, position);
System\Windows\Documents\FlowDocument.cs (1)
160return new TextRange(this.ContentStart, this.ContentEnd);
System\Windows\Documents\ImmComposition.cs (3)
1098range = new TextRange(composition._ResultStart, composition._ResultEnd, true /* ignoreTextUnitBoundaries */); 1112range = new TextRange(composition._CompositionStart, composition._CompositionEnd, true /* ignoreTextUnitBoundaries */); 1322range = new TextRange(_startComposition, _endComposition);
System\Windows\Documents\Speller.cs (1)
854debugMessage += $"Xml = {new TextRange((TextPointer)start.TextContainer.Start, (TextPointer)start.TextContainer.End).Xml}";
System\Windows\Documents\SpellerError.cs (1)
64ITextRange range = new TextRange(_start, _end);
System\windows\Documents\TextEditorDragDrop.cs (1)
166_dragSourceTextRange = new TextRange(selection.Start, selection.End);
System\windows\Documents\TextEditorSelection.cs (5)
122ITextRange textRange = new TextRange(lineRange.Start, lineRange.End); 460ITextRange paragraphRange = new TextRange(movingPointer, movingPointer); 511ITextRange paragraphRange = new TextRange(movingPointer, movingPointer); 1317ITextRange paragraphRange = new TextRange(movingPointer, movingPointer); 1358ITextRange paragraphRange = new TextRange(movingPointer, movingPointer);
System\windows\Documents\TextEditorTyping.cs (2)
921ITextRange textRange = new TextRange(This.Selection.Start, wordBoundary); 983ITextRange textRange = new TextRange(wordBoundary, This.Selection.End);
System\Windows\Documents\TextElement.cs (1)
294return new TextRange(contentStart, contentEnd);
System\Windows\Documents\TextFindEngine.cs (1)
275return (new TextRange(startMatchPosition, endMatchPosition));
System\Windows\Documents\TextRangeBase.cs (1)
292TextRange range = new TextRange(thisRange.Start, nextPosition);
System\Windows\Documents\TextRangeEditLists.cs (2)
687if (!UnindentListItems(new TextRange(start, GetPositionAfterList(startListItem.List)))) 715if (!UnindentListItems(new TextRange(endListItem.List.ContentStart, GetPositionAfterList(endListItem.List))))
System\Windows\Documents\TextRangeEditTables.cs (8)
1026TextRange rowsSegment = new TextRange(startRow.ContentStart, endRow.ContentEnd); 1044TextRange rowsSegment = new TextRange(startRow.ContentStart, startRow.Table.ContentEnd); 1057TextRange rowsSegment = new TextRange(endRow.Table.ContentStart, endRow.ContentEnd); 1131return new TextRange(textRange.Start, textRange.Start); 1209return rowCount > 0 ? new TextRange(firstInsertedRow.ContentStart, lastInsertedRow.ContentEnd) : new TextRange(lastInsertedRow.ContentStart, firstInsertedRow.ContentEnd); 1939return new TextRange(startCell.ContentStart, startCell.ContentStart); 2454result = new TextRange(firstCell.ContentStart, firstCell.ContentStart);
System\Windows\Documents\TextRangeSerialization.cs (1)
362ITextRange textRange = new TextRange(textSegment.Start, textSegment.End);
System\windows\Documents\TextSelection.cs (1)
1296new TextRange(autoWordRange.Start, autoWordRange.End).ApplyPropertyValue(formattingProperty, value);
System\Windows\Documents\TextStore.cs (5)
516ITextRange range = new TextRange(start, end, true /* ignoreTextUnitBoundaries */); 674ITextRange range = new TextRange(this.TextSelection.AnchorPosition, this.TextSelection.MovingPosition); 1260TextRange range = new TextRange(start, end); 1959range = new TextRange(composition._ResultStart, composition._ResultEnd, true /* ignoreTextUnitBoundaries */); 1969range = new TextRange(composition._CompositionStart, composition._CompositionEnd, true /* ignoreTextUnitBoundaries */);
88 references to TextRange
PresentationFramework (88)
MS\Internal\Annotations\Anchoring\LocatorManager.cs (1)
59RegisterSelectionProcessor(textProcessor, typeof(TextRange));
MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (2)
221internal static TextRange GetTextViewTextRange(ITextView textView, out int startOffset, out int endOffset) 229TextRange textRange = null;
MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (4)
204TextRange rtbRange = new TextRange(richTextBox.Document.ContentStart, richTextBox.Document.ContentEnd); 232TextRange rtbRange = new TextRange(document.ContentStart, document.ContentEnd, useRestrictiveXamlXmlReader: true); 260TextRange textRange = new TextRange(richTextBox.Document.ContentStart, richTextBox.Document.ContentEnd); 301TextRange range = new TextRange(document.ContentStart, document.ContentEnd);
System\Windows\Annotations\AnnotationDocumentPaginator.cs (2)
323_locatorManager.RegisterSelectionProcessor(new FixedTextSelectionProcessor(), typeof(TextRange)); 333_locatorManager.RegisterSelectionProcessor(textSelectionProcessor, typeof(TextRange));
System\Windows\Annotations\AnnotationHelper.cs (2)
204TextSelectionProcessor rangeProcessor = service.LocatorManager.GetSelectionProcessor(typeof(TextRange)) as TextSelectionProcessor; 681TextSelectionProcessor rangeProcessor = service.LocatorManager.GetSelectionProcessor(typeof(TextRange)) as TextSelectionProcessor;
System\Windows\Annotations\AnnotationService.cs (3)
193_locatorManager.RegisterSelectionProcessor(new FixedTextSelectionProcessor(), typeof(TextRange)); 198_locatorManager.RegisterSelectionProcessor(new TextSelectionProcessor(), typeof(TextRange)); 1556flowRangeProcessor = this.LocatorManager.GetSelectionProcessor(typeof(TextRange)) as TextSelectionProcessor;
System\Windows\Controls\Primitives\DocumentViewerBase.cs (2)
1376service.LocatorManager.RegisterSelectionProcessor(new FixedTextSelectionProcessor(), typeof(TextRange)); 1389service.LocatorManager.RegisterSelectionProcessor(new TextSelectionProcessor(), typeof(TextRange));
System\Windows\Controls\Primitives\TextBoxBase.cs (1)
108TextRange range = new TextRange(_textContainer.End, _textContainer.End)
System\Windows\Controls\RichTextBox.cs (1)
241public TextRange GetSpellingErrorRange(TextPointer position)
System\Windows\Controls\TextBlock.cs (1)
469internal TextRange TextRange
System\Windows\Documents\FixedFindEngine.cs (2)
24internal static TextRange Find ( ITextPointer start, 64TextRange result = null;
System\Windows\Documents\FlowDocument.cs (1)
156internal TextRange TextRange
System\windows\Documents\TextEditor.cs (3)
429if (range is TextRange) 431MarkCultureProperty((TextRange)range, cultureInfo); 460internal void MarkCultureProperty(TextRange range, CultureInfo inputCultureInfo)
System\windows\Documents\TextEditorCopyPaste.cs (1)
880((TextRange)This.Selection).SetXmlVirtual(sectionOrSpan);
System\windows\Documents\TextEditorTyping.cs (2)
609TextRangeEditLists.ConvertListItemsToParagraphs((TextRange)This.Selection); 1171TextRange range = ((TextSelection)This.Selection).InsertRows(+1);
System\Windows\Documents\TextElement.cs (1)
280internal TextRange TextRange
System\Windows\Documents\TextFindEngine.cs (2)
97TextRange findResult = null; 170internal static TextRange InternalFind(
System\Windows\Documents\TextPointer.cs (6)
28/// <para>g) Create an instance of a <see cref="TextRange"/> object and use it for formatting, copying, pasting and other editing operations;</para> 58/// <see cref="TextRange.Start"/> and <see cref="TextRange.End"/>, etc. 71/// "insertion positions". Boundary positions of <see cref="TextRange"/> and <see cref="TextSelection"/> 73/// arbitrary position in TextRange constructor or <see cref="TextRange.Select"/> method.</para> 702/// <see cref="TextRange.Text"/> property for more sophisticated
System\Windows\Documents\TextRange.cs (13)
122/// <see cref="System.Windows.Documents.TextRange.Contains"/> 132/// <see cref="System.Windows.Documents.TextRange.Select"/> 142/// <see cref="System.Windows.Documents.TextRange.SelectWord"/> 152/// <see cref="System.Windows.Documents.TextRange.SelectParagraph"/> 1129internal TextRange InsertRows(int rowCount) 1168internal TextRange InsertColumns(int columnCount) 1201internal TextRange MergeCells() 1225internal TextRange SplitCell(int splitCountHorizontal, int splitCountVertical) 1470/// <see cref="TextRange.BeginChange"/> 1706internal virtual TextRange InsertRowsVirtual(int rowCount) 1734internal virtual TextRange InsertColumnsVirtual(int columnCount) 1762internal virtual TextRange MergeCellsVirtual() 1776internal virtual TextRange SplitCellVirtual(int splitCountHorizontal, int splitCountVertical)
System\Windows\Documents\TextRangeBase.cs (2)
292TextRange range = new TextRange(thisRange.Start, nextPosition); 1543internal static void Load(TextRange thisRange, Stream stream, string dataFormat)
System\Windows\Documents\TextRangeEdit.cs (1)
1364internal static void IncrementParagraphLeadingMargin(TextRange range, double increment, PropertyValueAction propertyValueAction)
System\Windows\Documents\TextRangeEditLists.cs (6)
236internal static bool IsListOperationApplicable(TextRange range) 266internal static bool ConvertParagraphsToListItems(TextRange range, TextMarkerStyle markerStyle) 337internal static void ConvertListItemsToParagraphs(TextRange range) 395internal static void IndentListItems(TextRange range) 443internal static bool UnindentListItems(TextRange range) 584private static bool IsRangeWithinSingleList(TextRange range)
System\Windows\Documents\TextRangeEditTables.cs (17)
1026TextRange rowsSegment = new TextRange(startRow.ContentStart, endRow.ContentEnd); 1044TextRange rowsSegment = new TextRange(startRow.ContentStart, startRow.Table.ContentEnd); 1057TextRange rowsSegment = new TextRange(endRow.Table.ContentStart, endRow.ContentEnd); 1118internal static TextRange InsertRows(TextRange textRange, int rowCount) 1221internal static bool DeleteRows(TextRange textRange) 1428internal static TextRange InsertColumns(TextRange textRange, int columnCount) 1535internal static bool DeleteColumns(TextRange textRange) 1824internal static TextRange MergeCells(TextRange textRange) 1851TextRange result = MergeCellRange(startCell.Row.RowGroup, // 1875internal static TextRange SplitCell(TextRange textRange, int splitCountHorizontal, int splitCountVertical) 2342private static TextRange MergeCellRange(TableRowGroup rowGroup, int topRow, int bottomRow, int leftColumn, int rightColumn) 2422private static TextRange DoMergeCellRange(TableRowGroup rowGroup, int topRow, int bottomRow, int leftColumn, int rightColumn) 2424TextRange result = null;
System\Windows\Documents\TextRangeSerialization.cs (6)
137internal static void PasteXml(TextRange range, TextElement fragment) 1222private static bool PasteSingleEmbeddedElement(TextRange range, TextElement fragment) 1255private static void PasteTextFragment(TextElement fragment, TextRange range) 1277private static void PasteNonMergeableTextFragment(TextElement fragment, TextRange range) 1294private static void PasteMergeableTextFragment(TextElement fragment, TextRange range, TextPointer insertionPosition) 1534private static void AdjustFragmentForTargetRange(TextElement fragment, TextRange range)
System\windows\Documents\TextSelection.cs (5)
83/// <see cref="System.Windows.Documents.TextRange.Select"/> 100/// <see cref="System.Windows.Documents.TextRange.SelectWord"/> 119/// <see cref="System.Windows.Documents.TextRange.SelectParagraph"/> 164/// <see cref="System.Windows.Documents.TextRange.GetPropertyValue"/> 281/// <see cref="System.Windows.Documents.TextRange.Text"/>
System\Windows\Documents\TextStore.cs (1)
1260TextRange range = new TextRange(start, end);