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