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