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