1 type derived from TextRange
PresentationFramework (1)
System\windows\Documents\TextSelection.cs (1)
29public sealed class TextSelection : TextRange, ITextSelection
47 instantiations of TextRange
PresentationFramework (47)
MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (1)
251textRange = new TextRange(start, end);
MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (4)
209TextRange rtbRange = new TextRange(richTextBox.Document.ContentStart, richTextBox.Document.ContentEnd); 237TextRange rtbRange = new TextRange(document.ContentStart, document.ContentEnd, useRestrictiveXamlXmlReader: true); 265TextRange textRange = new TextRange(richTextBox.Document.ContentStart, richTextBox.Document.ContentEnd); 306TextRange range = new TextRange(document.ContentStart, document.ContentEnd);
System\Windows\Annotations\AnnotationHelper.cs (2)
689ITextRange textRange = new TextRange(start, end); 958ITextRange anchor = new TextRange(selection.Start, selection.End);
System\Windows\Controls\Primitives\TextBoxBase.cs (1)
117TextRange range = new TextRange(_textContainer.End, _textContainer.End);
System\Windows\Controls\RichTextBox.cs (1)
251return (spellingError == null) ? null : new TextRange(spellingError.Start, spellingError.End);
System\Windows\Controls\TextBlock.cs (1)
489return new TextRange(this.ContentStart, this.ContentEnd);
System\Windows\Controls\TextRangeAdaptor.cs (3)
641ITextRange textRange = new TextRange(_start, _end); 853ITextRange textRange = new TextRange(position, position); 1110ITextRange paragraphRange = new TextRange(position, position);
System\Windows\Documents\FlowDocument.cs (1)
160return new TextRange(this.ContentStart, this.ContentEnd);
System\Windows\Documents\ImmComposition.cs (3)
1119range = new TextRange(composition._ResultStart, composition._ResultEnd, true /* ignoreTextUnitBoundaries */); 1133range = new TextRange(composition._CompositionStart, composition._CompositionEnd, true /* ignoreTextUnitBoundaries */); 1343range = new TextRange(_startComposition, _endComposition);
System\Windows\Documents\Speller.cs (1)
858debugMessage += $"Xml = {new TextRange((TextPointer)start.TextContainer.Start, (TextPointer)start.TextContainer.End).Xml}";
System\Windows\Documents\SpellerError.cs (1)
66ITextRange range = new TextRange(_start, _end);
System\windows\Documents\TextEditorDragDrop.cs (1)
183_dragSourceTextRange = new TextRange(selection.Start, selection.End);
System\windows\Documents\TextEditorSelection.cs (5)
137ITextRange textRange = new TextRange(lineRange.Start, lineRange.End); 475ITextRange paragraphRange = new TextRange(movingPointer, movingPointer); 526ITextRange paragraphRange = new TextRange(movingPointer, movingPointer); 1332ITextRange paragraphRange = new TextRange(movingPointer, movingPointer); 1373ITextRange paragraphRange = new TextRange(movingPointer, movingPointer);
System\windows\Documents\TextEditorTyping.cs (2)
930ITextRange textRange = new TextRange(This.Selection.Start, wordBoundary); 992ITextRange textRange = new TextRange(wordBoundary, This.Selection.End);
System\Windows\Documents\TextElement.cs (1)
309return new TextRange(contentStart, contentEnd);
System\Windows\Documents\TextFindEngine.cs (1)
283return (new TextRange(startMatchPosition, endMatchPosition));
System\Windows\Documents\TextRangeBase.cs (1)
295TextRange 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)
1024TextRange rowsSegment = new TextRange(startRow.ContentStart, endRow.ContentEnd); 1042TextRange rowsSegment = new TextRange(startRow.ContentStart, startRow.Table.ContentEnd); 1055TextRange rowsSegment = new TextRange(endRow.Table.ContentStart, endRow.ContentEnd); 1129return new TextRange(textRange.Start, textRange.Start); 1207return rowCount > 0 ? new TextRange(firstInsertedRow.ContentStart, lastInsertedRow.ContentEnd) : new TextRange(lastInsertedRow.ContentStart, firstInsertedRow.ContentEnd); 1937return new TextRange(startCell.ContentStart, startCell.ContentStart); 2452result = new TextRange(firstCell.ContentStart, firstCell.ContentStart);
System\Windows\Documents\TextRangeSerialization.cs (1)
368ITextRange textRange = new TextRange(textSegment.Start, textSegment.End);
System\windows\Documents\TextSelection.cs (1)
1299new TextRange(autoWordRange.Start, autoWordRange.End).ApplyPropertyValue(formattingProperty, value);
System\Windows\Documents\TextStore.cs (5)
527ITextRange range = new TextRange(start, end, true /* ignoreTextUnitBoundaries */); 685ITextRange range = new TextRange(this.TextSelection.AnchorPosition, this.TextSelection.MovingPosition); 1271TextRange range = new TextRange(start, end); 1970range = new TextRange(composition._ResultStart, composition._ResultEnd, true /* ignoreTextUnitBoundaries */); 1980range = new TextRange(composition._CompositionStart, composition._CompositionEnd, true /* ignoreTextUnitBoundaries */);
88 references to TextRange
PresentationFramework (88)
MS\Internal\Annotations\Anchoring\LocatorManager.cs (1)
81RegisterSelectionProcessor(textProcessor, typeof(TextRange));
MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (2)
233internal static TextRange GetTextViewTextRange(ITextView textView, out int startOffset, out int endOffset) 241TextRange textRange = null;
MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (4)
209TextRange rtbRange = new TextRange(richTextBox.Document.ContentStart, richTextBox.Document.ContentEnd); 237TextRange rtbRange = new TextRange(document.ContentStart, document.ContentEnd, useRestrictiveXamlXmlReader: true); 265TextRange textRange = new TextRange(richTextBox.Document.ContentStart, richTextBox.Document.ContentEnd); 306TextRange range = new TextRange(document.ContentStart, document.ContentEnd);
System\Windows\Annotations\AnnotationDocumentPaginator.cs (2)
324_locatorManager.RegisterSelectionProcessor(new FixedTextSelectionProcessor(), typeof(TextRange)); 334_locatorManager.RegisterSelectionProcessor(textSelectionProcessor, typeof(TextRange));
System\Windows\Annotations\AnnotationHelper.cs (2)
218TextSelectionProcessor rangeProcessor = service.LocatorManager.GetSelectionProcessor(typeof(TextRange)) as TextSelectionProcessor; 695TextSelectionProcessor rangeProcessor = service.LocatorManager.GetSelectionProcessor(typeof(TextRange)) as TextSelectionProcessor;
System\Windows\Annotations\AnnotationService.cs (3)
206_locatorManager.RegisterSelectionProcessor(new FixedTextSelectionProcessor(), typeof(TextRange)); 211_locatorManager.RegisterSelectionProcessor(new TextSelectionProcessor(), typeof(TextRange)); 1573flowRangeProcessor = this.LocatorManager.GetSelectionProcessor(typeof(TextRange)) as TextSelectionProcessor;
System\Windows\Controls\Primitives\DocumentViewerBase.cs (2)
1391service.LocatorManager.RegisterSelectionProcessor(new FixedTextSelectionProcessor(), typeof(TextRange)); 1404service.LocatorManager.RegisterSelectionProcessor(new TextSelectionProcessor(), typeof(TextRange));
System\Windows\Controls\Primitives\TextBoxBase.cs (1)
117TextRange range = new TextRange(_textContainer.End, _textContainer.End);
System\Windows\Controls\RichTextBox.cs (1)
245public TextRange GetSpellingErrorRange(TextPointer position)
System\Windows\Controls\TextBlock.cs (1)
481internal TextRange TextRange
System\Windows\Documents\FixedFindEngine.cs (2)
26internal static TextRange Find ( ITextPointer start, 66TextRange result = null;
System\Windows\Documents\FlowDocument.cs (1)
156internal TextRange TextRange
System\windows\Documents\TextEditor.cs (3)
440if (range is TextRange) 442MarkCultureProperty((TextRange)range, cultureInfo); 471internal void MarkCultureProperty(TextRange range, CultureInfo inputCultureInfo)
System\windows\Documents\TextEditorCopyPaste.cs (1)
891((TextRange)This.Selection).SetXmlVirtual(sectionOrSpan);
System\windows\Documents\TextEditorTyping.cs (2)
618TextRangeEditLists.ConvertListItemsToParagraphs((TextRange)This.Selection); 1180TextRange range = ((TextSelection)This.Selection).InsertRows(+1);
System\Windows\Documents\TextElement.cs (1)
295internal TextRange TextRange
System\Windows\Documents\TextFindEngine.cs (2)
105TextRange findResult = null; 178internal static TextRange InternalFind(
System\Windows\Documents\TextPointer.cs (6)
33/// <para>g) Create an instance of a <see cref="TextRange"/> object and use it for formatting, copying, pasting and other editing operations;</para> 63/// <see cref="TextRange.Start"/> and <see cref="TextRange.End"/>, etc. 76/// "insertion positions". Boundary positions of <see cref="TextRange"/> and <see cref="TextSelection"/> 78/// arbitrary position in TextRange constructor or <see cref="TextRange.Select"/> method.</para> 707/// <see cref="TextRange.Text"/> property for more sophisticated
System\Windows\Documents\TextRange.cs (13)
131/// <see cref="System.Windows.Documents.TextRange.Contains"/> 141/// <see cref="System.Windows.Documents.TextRange.Select"/> 151/// <see cref="System.Windows.Documents.TextRange.SelectWord"/> 161/// <see cref="System.Windows.Documents.TextRange.SelectParagraph"/> 1140internal TextRange InsertRows(int rowCount) 1179internal TextRange InsertColumns(int columnCount) 1212internal TextRange MergeCells() 1236internal TextRange SplitCell(int splitCountHorizontal, int splitCountVertical) 1481/// <see cref="TextRange.BeginChange"/> 1716internal virtual TextRange InsertRowsVirtual(int rowCount) 1744internal virtual TextRange InsertColumnsVirtual(int columnCount) 1772internal virtual TextRange MergeCellsVirtual() 1786internal virtual TextRange SplitCellVirtual(int splitCountHorizontal, int splitCountVertical)
System\Windows\Documents\TextRangeBase.cs (2)
295TextRange range = new TextRange(thisRange.Start, nextPosition); 1546internal static void Load(TextRange thisRange, Stream stream, string dataFormat)
System\Windows\Documents\TextRangeEdit.cs (1)
1366internal static void IncrementParagraphLeadingMargin(TextRange range, double increment, PropertyValueAction propertyValueAction)
System\Windows\Documents\TextRangeEditLists.cs (6)
238internal static bool IsListOperationApplicable(TextRange range) 268internal 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)
1024TextRange rowsSegment = new TextRange(startRow.ContentStart, endRow.ContentEnd); 1042TextRange rowsSegment = new TextRange(startRow.ContentStart, startRow.Table.ContentEnd); 1055TextRange rowsSegment = new TextRange(endRow.Table.ContentStart, endRow.ContentEnd); 1116internal static TextRange InsertRows(TextRange textRange, int rowCount) 1219internal static bool DeleteRows(TextRange textRange) 1426internal static TextRange InsertColumns(TextRange textRange, int columnCount) 1533internal static bool DeleteColumns(TextRange textRange) 1822internal static TextRange MergeCells(TextRange textRange) 1849TextRange result = MergeCellRange(startCell.Row.RowGroup, // 1873internal static TextRange SplitCell(TextRange textRange, int splitCountHorizontal, int splitCountVertical) 2340private static TextRange MergeCellRange(TableRowGroup rowGroup, int topRow, int bottomRow, int leftColumn, int rightColumn) 2420private static TextRange DoMergeCellRange(TableRowGroup rowGroup, int topRow, int bottomRow, int leftColumn, int rightColumn) 2422TextRange result = null;
System\Windows\Documents\TextRangeSerialization.cs (6)
143internal static void PasteXml(TextRange range, TextElement fragment) 1228private static bool PasteSingleEmbeddedElement(TextRange range, TextElement fragment) 1261private static void PasteTextFragment(TextElement fragment, TextRange range) 1283private static void PasteNonMergeableTextFragment(TextElement fragment, TextRange range) 1300private static void PasteMergeableTextFragment(TextElement fragment, TextRange range, TextPointer insertionPosition) 1540private static void AdjustFragmentForTargetRange(TextElement fragment, TextRange range)
System\windows\Documents\TextSelection.cs (5)
86/// <see cref="System.Windows.Documents.TextRange.Select"/> 103/// <see cref="System.Windows.Documents.TextRange.SelectWord"/> 122/// <see cref="System.Windows.Documents.TextRange.SelectParagraph"/> 167/// <see cref="System.Windows.Documents.TextRange.GetPropertyValue"/> 284/// <see cref="System.Windows.Documents.TextRange.Text"/>
System\Windows\Documents\TextStore.cs (1)
1271TextRange range = new TextRange(start, end);