1 type derived from TextRange
PresentationFramework (1)
src\Framework\System\windows\Documents\TextSelection.cs (1)
32public sealed class TextSelection : TextRange, ITextSelection
47 instantiations of TextRange
PresentationFramework (47)
src\Framework\MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (1)
257textRange = new TextRange(start, end);
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (4)
215TextRange rtbRange = new TextRange(richTextBox.Document.ContentStart, richTextBox.Document.ContentEnd); 243TextRange rtbRange = new TextRange(document.ContentStart, document.ContentEnd); 271TextRange textRange = new TextRange(richTextBox.Document.ContentStart, richTextBox.Document.ContentEnd); 312TextRange range = new TextRange(document.ContentStart, document.ContentEnd);
src\Framework\System\Windows\Annotations\AnnotationHelper.cs (2)
696ITextRange textRange = new TextRange(start, end); 966ITextRange anchor = new TextRange(selection.Start, selection.End);
src\Framework\System\Windows\Controls\Primitives\TextBoxBase.cs (1)
128TextRange range = new TextRange(_textContainer.End, _textContainer.End);
src\Framework\System\Windows\Controls\RichTextBox.cs (1)
259return (spellingError == null) ? null : new TextRange(spellingError.Start, spellingError.End);
src\Framework\System\Windows\Controls\TextBlock.cs (1)
507return new TextRange(this.ContentStart, this.ContentEnd);
src\Framework\System\Windows\Controls\TextRangeAdaptor.cs (3)
649ITextRange textRange = new TextRange(_start, _end); 861ITextRange textRange = new TextRange(position, position); 1119ITextRange paragraphRange = new TextRange(position, position);
src\Framework\System\Windows\Documents\FlowDocument.cs (1)
168return new TextRange(this.ContentStart, this.ContentEnd);
src\Framework\System\Windows\Documents\ImmComposition.cs (3)
1251range = new TextRange(composition._ResultStart, composition._ResultEnd, true /* ignoreTextUnitBoundaries */); 1265range = new TextRange(composition._CompositionStart, composition._CompositionEnd, true /* ignoreTextUnitBoundaries */); 1484range = new TextRange(_startComposition, _endComposition);
src\Framework\System\Windows\Documents\Speller.cs (1)
926debugMessage += "Xml = " + new TextRange((TextPointer)start.TextContainer.Start, (TextPointer)start.TextContainer.End).Xml;
src\Framework\System\Windows\Documents\SpellerError.cs (1)
66ITextRange range = new TextRange(_start, _end);
src\Framework\System\windows\Documents\TextEditorDragDrop.cs (1)
194_dragSourceTextRange = new TextRange(selection.Start, selection.End);
src\Framework\System\windows\Documents\TextEditorSelection.cs (5)
145ITextRange textRange = new TextRange(lineRange.Start, lineRange.End); 483ITextRange paragraphRange = new TextRange(movingPointer, movingPointer); 534ITextRange paragraphRange = new TextRange(movingPointer, movingPointer); 1341ITextRange paragraphRange = new TextRange(movingPointer, movingPointer); 1382ITextRange paragraphRange = new TextRange(movingPointer, movingPointer);
src\Framework\System\windows\Documents\TextEditorTyping.cs (2)
947ITextRange textRange = new TextRange(This.Selection.Start, wordBoundary); 1009ITextRange textRange = new TextRange(wordBoundary, This.Selection.End);
src\Framework\System\Windows\Documents\TextElement.cs (1)
314return new TextRange(contentStart, contentEnd);
src\Framework\System\Windows\Documents\TextFindEngine.cs (1)
288return (new TextRange(startMatchPosition, endMatchPosition));
src\Framework\System\Windows\Documents\TextRangeBase.cs (1)
306TextRange range = new TextRange(thisRange.Start, nextPosition);
src\Framework\System\Windows\Documents\TextRangeEditLists.cs (2)
689if (!UnindentListItems(new TextRange(start, GetPositionAfterList(startListItem.List)))) 717if (!UnindentListItems(new TextRange(endListItem.List.ContentStart, GetPositionAfterList(endListItem.List))))
src\Framework\System\Windows\Documents\TextRangeEditTables.cs (8)
1027TextRange rowsSegment = new TextRange(startRow.ContentStart, endRow.ContentEnd); 1045TextRange rowsSegment = new TextRange(startRow.ContentStart, startRow.Table.ContentEnd); 1058TextRange rowsSegment = new TextRange(endRow.Table.ContentStart, endRow.ContentEnd); 1132return new TextRange(textRange.Start, textRange.Start); 1210return rowCount > 0 ? new TextRange(firstInsertedRow.ContentStart, lastInsertedRow.ContentEnd) : new TextRange(lastInsertedRow.ContentStart, firstInsertedRow.ContentEnd); 1940return new TextRange(startCell.ContentStart, startCell.ContentStart); 2455result = new TextRange(firstCell.ContentStart, firstCell.ContentStart);
src\Framework\System\Windows\Documents\TextRangeSerialization.cs (1)
374ITextRange textRange = new TextRange(textSegment.Start, textSegment.End);
src\Framework\System\windows\Documents\TextSelection.cs (1)
1302new TextRange(autoWordRange.Start, autoWordRange.End).ApplyPropertyValue(formattingProperty, value);
src\Framework\System\Windows\Documents\TextStore.cs (5)
406ITextRange range = new TextRange(start, end, true /* ignoreTextUnitBoundaries */); 553ITextRange range = new TextRange(this.TextSelection.AnchorPosition, this.TextSelection.MovingPosition); 1143TextRange range = new TextRange(start, end); 1848range = new TextRange(composition._ResultStart, composition._ResultEnd, true /* ignoreTextUnitBoundaries */); 1858range = new TextRange(composition._CompositionStart, composition._CompositionEnd, true /* ignoreTextUnitBoundaries */);
88 references to TextRange
PresentationFramework (88)
src\Framework\MS\Internal\Annotations\Anchoring\LocatorManager.cs (1)
88RegisterSelectionProcessor(textProcessor, typeof(TextRange));
src\Framework\MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (2)
239internal static TextRange GetTextViewTextRange(ITextView textView, out int startOffset, out int endOffset) 247TextRange textRange = null;
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (4)
215TextRange rtbRange = new TextRange(richTextBox.Document.ContentStart, richTextBox.Document.ContentEnd); 243TextRange rtbRange = new TextRange(document.ContentStart, document.ContentEnd); 271TextRange textRange = new TextRange(richTextBox.Document.ContentStart, richTextBox.Document.ContentEnd); 312TextRange range = new TextRange(document.ContentStart, document.ContentEnd);
src\Framework\System\Windows\Annotations\AnnotationDocumentPaginator.cs (2)
334_locatorManager.RegisterSelectionProcessor(new FixedTextSelectionProcessor(), typeof(TextRange)); 344_locatorManager.RegisterSelectionProcessor(textSelectionProcessor, typeof(TextRange));
src\Framework\System\Windows\Annotations\AnnotationHelper.cs (2)
224TextSelectionProcessor rangeProcessor = service.LocatorManager.GetSelectionProcessor(typeof(TextRange)) as TextSelectionProcessor; 702TextSelectionProcessor rangeProcessor = service.LocatorManager.GetSelectionProcessor(typeof(TextRange)) as TextSelectionProcessor;
src\Framework\System\Windows\Annotations\AnnotationService.cs (3)
222_locatorManager.RegisterSelectionProcessor(new FixedTextSelectionProcessor(), typeof(TextRange)); 227_locatorManager.RegisterSelectionProcessor(new TextSelectionProcessor(), typeof(TextRange)); 1613flowRangeProcessor = this.LocatorManager.GetSelectionProcessor(typeof(TextRange)) as TextSelectionProcessor;
src\Framework\System\Windows\Controls\Primitives\DocumentViewerBase.cs (2)
1403service.LocatorManager.RegisterSelectionProcessor(new FixedTextSelectionProcessor(), typeof(TextRange)); 1416service.LocatorManager.RegisterSelectionProcessor(new TextSelectionProcessor(), typeof(TextRange));
src\Framework\System\Windows\Controls\Primitives\TextBoxBase.cs (1)
128TextRange range = new TextRange(_textContainer.End, _textContainer.End);
src\Framework\System\Windows\Controls\RichTextBox.cs (1)
253public TextRange GetSpellingErrorRange(TextPointer position)
src\Framework\System\Windows\Controls\TextBlock.cs (1)
499internal TextRange TextRange
src\Framework\System\Windows\Documents\FixedFindEngine.cs (2)
30internal static TextRange Find ( ITextPointer start, 70TextRange result = null;
src\Framework\System\Windows\Documents\FlowDocument.cs (1)
164internal TextRange TextRange
src\Framework\System\windows\Documents\TextEditor.cs (3)
455if (range is TextRange) 457MarkCultureProperty((TextRange)range, cultureInfo); 486internal void MarkCultureProperty(TextRange range, CultureInfo inputCultureInfo)
src\Framework\System\windows\Documents\TextEditorCopyPaste.cs (1)
1067((TextRange)This.Selection).SetXmlVirtual(sectionOrSpan);
src\Framework\System\windows\Documents\TextEditorTyping.cs (2)
634TextRangeEditLists.ConvertListItemsToParagraphs((TextRange)This.Selection); 1197TextRange range = ((TextSelection)This.Selection).InsertRows(+1);
src\Framework\System\Windows\Documents\TextElement.cs (1)
300internal TextRange TextRange
src\Framework\System\Windows\Documents\TextFindEngine.cs (2)
109TextRange findResult = null; 183internal static TextRange InternalFind(
src\Framework\System\Windows\Documents\TextPointer.cs (6)
35/// <para>g) Create an instance of a <see cref="TextRange"/> object and use it for formatting, copying, pasting and other editing operations;</para> 65/// <see cref="TextRange.Start"/> and <see cref="TextRange.End"/>, etc. 78/// "insertion positions". Boundary positions of <see cref="TextRange"/> and <see cref="TextSelection"/> 80/// arbitrary position in TextRange constructor or <see cref="TextRange.Select"/> method.</para> 718/// <see cref="TextRange.Text"/> property for more sophisticated
src\Framework\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"/> 1137internal TextRange InsertRows(int rowCount) 1176internal TextRange InsertColumns(int columnCount) 1209internal TextRange MergeCells() 1233internal TextRange SplitCell(int splitCountHorizontal, int splitCountVertical) 1478/// <see cref="TextRange.BeginChange"/> 1713internal virtual TextRange InsertRowsVirtual(int rowCount) 1741internal virtual TextRange InsertColumnsVirtual(int columnCount) 1769internal virtual TextRange MergeCellsVirtual() 1783internal virtual TextRange SplitCellVirtual(int splitCountHorizontal, int splitCountVertical)
src\Framework\System\Windows\Documents\TextRangeBase.cs (2)
306TextRange range = new TextRange(thisRange.Start, nextPosition); 1568internal static void Load(TextRange thisRange, Stream stream, string dataFormat)
src\Framework\System\Windows\Documents\TextRangeEdit.cs (1)
1368internal static void IncrementParagraphLeadingMargin(TextRange range, double increment, PropertyValueAction propertyValueAction)
src\Framework\System\Windows\Documents\TextRangeEditLists.cs (6)
240internal static bool IsListOperationApplicable(TextRange range) 270internal static bool ConvertParagraphsToListItems(TextRange range, TextMarkerStyle markerStyle) 339internal static void ConvertListItemsToParagraphs(TextRange range) 397internal static void IndentListItems(TextRange range) 445internal static bool UnindentListItems(TextRange range) 586private static bool IsRangeWithinSingleList(TextRange range)
src\Framework\System\Windows\Documents\TextRangeEditTables.cs (17)
1027TextRange rowsSegment = new TextRange(startRow.ContentStart, endRow.ContentEnd); 1045TextRange rowsSegment = new TextRange(startRow.ContentStart, startRow.Table.ContentEnd); 1058TextRange rowsSegment = new TextRange(endRow.Table.ContentStart, endRow.ContentEnd); 1119internal static TextRange InsertRows(TextRange textRange, int rowCount) 1222internal static bool DeleteRows(TextRange textRange) 1429internal static TextRange InsertColumns(TextRange textRange, int columnCount) 1536internal static bool DeleteColumns(TextRange textRange) 1825internal static TextRange MergeCells(TextRange textRange) 1852TextRange result = MergeCellRange(startCell.Row.RowGroup, // 1876internal static TextRange SplitCell(TextRange textRange, int splitCountHorizontal, int splitCountVertical) 2343private static TextRange MergeCellRange(TableRowGroup rowGroup, int topRow, int bottomRow, int leftColumn, int rightColumn) 2423private static TextRange DoMergeCellRange(TableRowGroup rowGroup, int topRow, int bottomRow, int leftColumn, int rightColumn) 2425TextRange result = null;
src\Framework\System\Windows\Documents\TextRangeSerialization.cs (6)
145internal static void PasteXml(TextRange range, TextElement fragment) 1252private static bool PasteSingleEmbeddedElement(TextRange range, TextElement fragment) 1285private static void PasteTextFragment(TextElement fragment, TextRange range) 1307private static void PasteNonMergeableTextFragment(TextElement fragment, TextRange range) 1324private static void PasteMergeableTextFragment(TextElement fragment, TextRange range, TextPointer insertionPosition) 1560private static void AdjustFragmentForTargetRange(TextElement fragment, TextRange range)
src\Framework\System\windows\Documents\TextSelection.cs (5)
89/// <see cref="System.Windows.Documents.TextRange.Select"/> 106/// <see cref="System.Windows.Documents.TextRange.SelectWord"/> 125/// <see cref="System.Windows.Documents.TextRange.SelectParagraph"/> 170/// <see cref="System.Windows.Documents.TextRange.GetPropertyValue"/> 287/// <see cref="System.Windows.Documents.TextRange.Text"/>
src\Framework\System\Windows\Documents\TextStore.cs (1)
1143TextRange range = new TextRange(start, end);