1 type derived from TextRange
PresentationFramework (1)
System\windows\Documents\TextSelection.cs (1)
25public sealed class TextSelection : TextRange, ITextSelection
47 instantiations of TextRange
PresentationFramework (47)
MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (1)
238textRange = new TextRange(start, end);
MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (4)
203TextRange rtbRange = new TextRange(richTextBox.Document.ContentStart, richTextBox.Document.ContentEnd); 231TextRange rtbRange = new TextRange(document.ContentStart, document.ContentEnd, useRestrictiveXamlXmlReader: true); 259TextRange textRange = new TextRange(richTextBox.Document.ContentStart, richTextBox.Document.ContentEnd); 300TextRange range = new TextRange(document.ContentStart, document.ContentEnd);
System\Windows\Annotations\AnnotationHelper.cs (2)
674ITextRange textRange = new TextRange(start, end); 943ITextRange anchor = new TextRange(selection.Start, selection.End);
System\Windows\Controls\Primitives\TextBoxBase.cs (1)
107TextRange range = new TextRange(_textContainer.End, _textContainer.End)
System\Windows\Controls\RichTextBox.cs (1)
246return (spellingError == null) ? null : new TextRange(spellingError.Start, spellingError.End);
System\Windows\Controls\TextBlock.cs (1)
476return new TextRange(this.ContentStart, this.ContentEnd);
System\Windows\Controls\TextRangeAdaptor.cs (3)
638ITextRange textRange = new TextRange(_start, _end); 850ITextRange textRange = new TextRange(position, position); 1107ITextRange paragraphRange = new TextRange(position, position);
System\Windows\Documents\FlowDocument.cs (1)
159return new TextRange(this.ContentStart, this.ContentEnd);
System\Windows\Documents\ImmComposition.cs (3)
1097range = new TextRange(composition._ResultStart, composition._ResultEnd, true /* ignoreTextUnitBoundaries */); 1111range = new TextRange(composition._CompositionStart, composition._CompositionEnd, true /* ignoreTextUnitBoundaries */); 1321range = new TextRange(_startComposition, _endComposition);
System\Windows\Documents\Speller.cs (1)
850debugMessage += $"Xml = {new TextRange((TextPointer)start.TextContainer.Start, (TextPointer)start.TextContainer.End).Xml}";
System\Windows\Documents\SpellerError.cs (1)
63ITextRange range = new TextRange(_start, _end);
System\windows\Documents\TextEditorDragDrop.cs (1)
165_dragSourceTextRange = new TextRange(selection.Start, selection.End);
System\windows\Documents\TextEditorSelection.cs (5)
121ITextRange textRange = new TextRange(lineRange.Start, lineRange.End); 459ITextRange paragraphRange = new TextRange(movingPointer, movingPointer); 510ITextRange paragraphRange = new TextRange(movingPointer, movingPointer); 1316ITextRange paragraphRange = new TextRange(movingPointer, movingPointer); 1357ITextRange paragraphRange = new TextRange(movingPointer, movingPointer);
System\windows\Documents\TextEditorTyping.cs (2)
911ITextRange textRange = new TextRange(This.Selection.Start, wordBoundary); 973ITextRange textRange = new TextRange(wordBoundary, This.Selection.End);
System\Windows\Documents\TextElement.cs (1)
293return new TextRange(contentStart, contentEnd);
System\Windows\Documents\TextFindEngine.cs (1)
273return (new TextRange(startMatchPosition, endMatchPosition));
System\Windows\Documents\TextRangeBase.cs (1)
291TextRange range = new TextRange(thisRange.Start, nextPosition);
System\Windows\Documents\TextRangeEditLists.cs (2)
686if (!UnindentListItems(new TextRange(start, GetPositionAfterList(startListItem.List)))) 714if (!UnindentListItems(new TextRange(endListItem.List.ContentStart, GetPositionAfterList(endListItem.List))))
System\Windows\Documents\TextRangeEditTables.cs (8)
1025TextRange rowsSegment = new TextRange(startRow.ContentStart, endRow.ContentEnd); 1043TextRange rowsSegment = new TextRange(startRow.ContentStart, startRow.Table.ContentEnd); 1056TextRange rowsSegment = new TextRange(endRow.Table.ContentStart, endRow.ContentEnd); 1130return new TextRange(textRange.Start, textRange.Start); 1208return rowCount > 0 ? new TextRange(firstInsertedRow.ContentStart, lastInsertedRow.ContentEnd) : new TextRange(lastInsertedRow.ContentStart, firstInsertedRow.ContentEnd); 1938return new TextRange(startCell.ContentStart, startCell.ContentStart); 2453result = new TextRange(firstCell.ContentStart, firstCell.ContentStart);
System\Windows\Documents\TextRangeSerialization.cs (1)
361ITextRange textRange = new TextRange(textSegment.Start, textSegment.End);
System\windows\Documents\TextSelection.cs (1)
1280new TextRange(autoWordRange.Start, autoWordRange.End).ApplyPropertyValue(formattingProperty, value);
System\Windows\Documents\TextStore.cs (5)
515ITextRange range = new TextRange(start, end, true /* ignoreTextUnitBoundaries */); 673ITextRange range = new TextRange(this.TextSelection.AnchorPosition, this.TextSelection.MovingPosition); 1256TextRange range = new TextRange(start, end); 1952range = new TextRange(composition._ResultStart, composition._ResultEnd, true /* ignoreTextUnitBoundaries */); 1962range = new TextRange(composition._CompositionStart, composition._CompositionEnd, true /* ignoreTextUnitBoundaries */);
88 references to TextRange
PresentationFramework (88)
MS\Internal\Annotations\Anchoring\LocatorManager.cs (1)
58RegisterSelectionProcessor(textProcessor, typeof(TextRange));
MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (2)
220internal static TextRange GetTextViewTextRange(ITextView textView, out int startOffset, out int endOffset) 228TextRange textRange = null;
MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (4)
203TextRange rtbRange = new TextRange(richTextBox.Document.ContentStart, richTextBox.Document.ContentEnd); 231TextRange rtbRange = new TextRange(document.ContentStart, document.ContentEnd, useRestrictiveXamlXmlReader: true); 259TextRange textRange = new TextRange(richTextBox.Document.ContentStart, richTextBox.Document.ContentEnd); 300TextRange range = new TextRange(document.ContentStart, document.ContentEnd);
System\Windows\Annotations\AnnotationDocumentPaginator.cs (2)
322_locatorManager.RegisterSelectionProcessor(new FixedTextSelectionProcessor(), typeof(TextRange)); 332_locatorManager.RegisterSelectionProcessor(textSelectionProcessor, typeof(TextRange));
System\Windows\Annotations\AnnotationHelper.cs (2)
203TextSelectionProcessor rangeProcessor = service.LocatorManager.GetSelectionProcessor(typeof(TextRange)) as TextSelectionProcessor; 680TextSelectionProcessor rangeProcessor = service.LocatorManager.GetSelectionProcessor(typeof(TextRange)) as TextSelectionProcessor;
System\Windows\Annotations\AnnotationService.cs (3)
192_locatorManager.RegisterSelectionProcessor(new FixedTextSelectionProcessor(), typeof(TextRange)); 197_locatorManager.RegisterSelectionProcessor(new TextSelectionProcessor(), typeof(TextRange)); 1555flowRangeProcessor = this.LocatorManager.GetSelectionProcessor(typeof(TextRange)) as TextSelectionProcessor;
System\Windows\Controls\Primitives\DocumentViewerBase.cs (2)
1360service.LocatorManager.RegisterSelectionProcessor(new FixedTextSelectionProcessor(), typeof(TextRange)); 1373service.LocatorManager.RegisterSelectionProcessor(new TextSelectionProcessor(), typeof(TextRange));
System\Windows\Controls\Primitives\TextBoxBase.cs (1)
107TextRange range = new TextRange(_textContainer.End, _textContainer.End)
System\Windows\Controls\RichTextBox.cs (1)
240public TextRange GetSpellingErrorRange(TextPointer position)
System\Windows\Controls\TextBlock.cs (1)
468internal TextRange TextRange
System\Windows\Documents\FixedFindEngine.cs (2)
23internal static TextRange Find ( ITextPointer start, 63TextRange result = null;
System\Windows\Documents\FlowDocument.cs (1)
155internal TextRange TextRange
System\windows\Documents\TextEditor.cs (3)
425if (range is TextRange) 427MarkCultureProperty((TextRange)range, cultureInfo); 456internal void MarkCultureProperty(TextRange range, CultureInfo inputCultureInfo)
System\windows\Documents\TextEditorCopyPaste.cs (1)
879((TextRange)This.Selection).SetXmlVirtual(sectionOrSpan);
System\windows\Documents\TextEditorTyping.cs (2)
599TextRangeEditLists.ConvertListItemsToParagraphs((TextRange)This.Selection); 1161TextRange range = ((TextSelection)This.Selection).InsertRows(+1);
System\Windows\Documents\TextElement.cs (1)
279internal TextRange TextRange
System\Windows\Documents\TextFindEngine.cs (2)
96TextRange findResult = null; 168internal static TextRange InternalFind(
System\Windows\Documents\TextPointer.cs (6)
27/// <para>g) Create an instance of a <see cref="TextRange"/> object and use it for formatting, copying, pasting and other editing operations;</para> 57/// <see cref="TextRange.Start"/> and <see cref="TextRange.End"/>, etc. 70/// "insertion positions". Boundary positions of <see cref="TextRange"/> and <see cref="TextSelection"/> 72/// arbitrary position in TextRange constructor or <see cref="TextRange.Select"/> method.</para> 701/// <see cref="TextRange.Text"/> property for more sophisticated
System\Windows\Documents\TextRange.cs (13)
121/// <see cref="System.Windows.Documents.TextRange.Contains"/> 131/// <see cref="System.Windows.Documents.TextRange.Select"/> 141/// <see cref="System.Windows.Documents.TextRange.SelectWord"/> 151/// <see cref="System.Windows.Documents.TextRange.SelectParagraph"/> 1128internal TextRange InsertRows(int rowCount) 1167internal TextRange InsertColumns(int columnCount) 1200internal TextRange MergeCells() 1224internal TextRange SplitCell(int splitCountHorizontal, int splitCountVertical) 1469/// <see cref="TextRange.BeginChange"/> 1705internal virtual TextRange InsertRowsVirtual(int rowCount) 1733internal virtual TextRange InsertColumnsVirtual(int columnCount) 1761internal virtual TextRange MergeCellsVirtual() 1775internal virtual TextRange SplitCellVirtual(int splitCountHorizontal, int splitCountVertical)
System\Windows\Documents\TextRangeBase.cs (2)
291TextRange range = new TextRange(thisRange.Start, nextPosition); 1542internal static void Load(TextRange thisRange, Stream stream, string dataFormat)
System\Windows\Documents\TextRangeEdit.cs (1)
1363internal static void IncrementParagraphLeadingMargin(TextRange range, double increment, PropertyValueAction propertyValueAction)
System\Windows\Documents\TextRangeEditLists.cs (6)
235internal static bool IsListOperationApplicable(TextRange range) 265internal static bool ConvertParagraphsToListItems(TextRange range, TextMarkerStyle markerStyle) 336internal static void ConvertListItemsToParagraphs(TextRange range) 394internal static void IndentListItems(TextRange range) 442internal static bool UnindentListItems(TextRange range) 583private static bool IsRangeWithinSingleList(TextRange range)
System\Windows\Documents\TextRangeEditTables.cs (17)
1025TextRange rowsSegment = new TextRange(startRow.ContentStart, endRow.ContentEnd); 1043TextRange rowsSegment = new TextRange(startRow.ContentStart, startRow.Table.ContentEnd); 1056TextRange rowsSegment = new TextRange(endRow.Table.ContentStart, endRow.ContentEnd); 1117internal static TextRange InsertRows(TextRange textRange, int rowCount) 1220internal static bool DeleteRows(TextRange textRange) 1427internal static TextRange InsertColumns(TextRange textRange, int columnCount) 1534internal static bool DeleteColumns(TextRange textRange) 1823internal static TextRange MergeCells(TextRange textRange) 1850TextRange result = MergeCellRange(startCell.Row.RowGroup, // 1874internal static TextRange SplitCell(TextRange textRange, int splitCountHorizontal, int splitCountVertical) 2341private static TextRange MergeCellRange(TableRowGroup rowGroup, int topRow, int bottomRow, int leftColumn, int rightColumn) 2421private static TextRange DoMergeCellRange(TableRowGroup rowGroup, int topRow, int bottomRow, int leftColumn, int rightColumn) 2423TextRange result = null;
System\Windows\Documents\TextRangeSerialization.cs (6)
136internal static void PasteXml(TextRange range, TextElement fragment) 1221private static bool PasteSingleEmbeddedElement(TextRange range, TextElement fragment) 1254private static void PasteTextFragment(TextElement fragment, TextRange range) 1276private static void PasteNonMergeableTextFragment(TextElement fragment, TextRange range) 1293private static void PasteMergeableTextFragment(TextElement fragment, TextRange range, TextPointer insertionPosition) 1533private static void AdjustFragmentForTargetRange(TextElement fragment, TextRange range)
System\windows\Documents\TextSelection.cs (5)
82/// <see cref="System.Windows.Documents.TextRange.Select"/> 99/// <see cref="System.Windows.Documents.TextRange.SelectWord"/> 118/// <see cref="System.Windows.Documents.TextRange.SelectParagraph"/> 163/// <see cref="System.Windows.Documents.TextRange.GetPropertyValue"/> 268/// <see cref="System.Windows.Documents.TextRange.Text"/>
System\Windows\Documents\TextStore.cs (1)
1256TextRange range = new TextRange(start, end);