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