1 interface inheriting from ITextRange
PresentationFramework (1)
System\Windows\Documents\ITextSelection.cs (1)
17
internal interface ITextSelection :
ITextRange
1 implementation of ITextRange
PresentationFramework (1)
System\Windows\Documents\TextRange.cs (1)
15
public class TextRange :
ITextRange
210 references to ITextRange
PresentationFramework (210)
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (2)
432
ITextRange
textRange = selection as
ITextRange
;
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (2)
358
ITextRange
textRange = selection as
ITextRange
;
MS\Internal\Annotations\Component\HighlightComponent.cs (1)
443
internal bool IsSelected(
ITextRange
selection)
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (6)
492
_selection = textContainer.TextSelection as
ITextRange
;
888
ITextRange
selection = sender as
ITextRange
;
958
ITextRange
selection = container.TextSelection as
ITextRange
;
1181
private
ITextRange
_selection; // we need to listen to selection.Changed event
MS\Internal\Documents\DocumentGrid.cs (1)
1274
ITextRange
textRange = TextEditor.Selection;
MS\Internal\Documents\DocumentViewerHelper.cs (3)
75
internal static
ITextRange
Find(FindToolBar findToolBar, TextEditor textEditor, ITextView textView, ITextView masterPageTextView)
80
ITextRange
textSelection;
84
ITextRange
findResult = null;
MS\Internal\Documents\IFlowDocumentViewer.cs (3)
52
void ShowFindResult(
ITextRange
findResult);
305
void IFlowDocumentViewer.ShowFindResult(
ITextRange
findResult)
660
void IFlowDocumentViewer.ShowFindResult(
ITextRange
findResult)
System\Windows\Annotations\AnnotationHelper.cs (5)
674
ITextRange
textRange = new TextRange(start, end);
878
private static Annotation CreateAnnotationForSelection(AnnotationService service,
ITextRange
textSelection, XmlQualifiedName annotationType, string author)
943
ITextRange
anchor = new TextRange(selection.Start, selection.End);
962
private static Annotation ProcessHighlights(AnnotationService service,
ITextRange
textRange, string author, Nullable<Color> color, bool create)
1014
private static Annotation CreateHighlight(AnnotationService service,
ITextRange
textRange, string author, Nullable<Color> color)
System\Windows\Controls\DocumentViewer.cs (1)
2130
ITextRange
findResult = Find(_findToolbar);
System\Windows\Controls\FlowDocumentReader.cs (1)
1543
ITextRange
findResult;
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
1503
ITextRange
findResult;
System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
682
internal
ITextRange
Find(FindToolBar findToolBar)
System\Windows\Controls\SinglePageViewer.cs (1)
1155
ITextRange
findResult;
System\Windows\Controls\TextAdaptor.cs (1)
487
ITextRange
selection = _textContainer.TextSelection;
System\Windows\Controls\TextRangeAdaptor.cs (4)
638
ITextRange
textRange = new TextRange(_start, _end);
850
ITextRange
textRange = new TextRange(position, position);
1107
ITextRange
paragraphRange = new TextRange(position, position);
1771
ITextRange
findResult = TextFindEngine.Find(_start, _end, text, findFlags, CultureInfo.CurrentCulture);
System\Windows\Documents\ImmComposition.cs (4)
1086
ITextRange
range;
1314
ITextRange
range;
1382
private static string GetSurroundingText(
ITextRange
range, out int offsetStart)
1516
ITextRange
range = _editor.Selection;
System\Windows\Documents\SpellerError.cs (1)
63
ITextRange
range = new TextRange(_start, _end);
System\windows\Documents\TextEditor.cs (3)
419
internal void SetText(
ITextRange
range, string text, CultureInfo cultureInfo)
1153
internal string _FilterText(string textData,
ITextRange
range)
1163
internal string _FilterText(string textData,
ITextRange
range, bool filterMaxLength)
System\windows\Documents\TextEditorDragDrop.cs (1)
676
private
ITextRange
_dragSourceTextRange;
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\TextFindEngine.cs (1)
79
public static
ITextRange
Find(
System\Windows\Documents\TextRange.cs (84)
123
bool
ITextRange
.Contains(ITextPointer position)
133
void
ITextRange
.Select(ITextPointer position1, ITextPointer position2)
143
void
ITextRange
.SelectWord(ITextPointer position)
153
void
ITextRange
.SelectParagraph(ITextPointer position)
161
/// <see cref="System.Windows.Documents.
ITextRange
.ApplyTypingHeuristics"/>
163
void
ITextRange
.ApplyTypingHeuristics(bool overType)
170
object
ITextRange
.GetPropertyValue(DependencyProperty formattingProperty)
177
UIElement
ITextRange
.GetUIElementSelected()
190
bool
ITextRange
.CanSave(string dataFormat)
197
void
ITextRange
.Save(Stream stream, string dataFormat)
204
void
ITextRange
.Save(Stream stream, string dataFormat, bool preserveTextElements)
218
/// <see cref="
ITextRange
.BeginChange"/>
220
void
ITextRange
.BeginChange()
228
/// <see cref="
ITextRange
.BeginChangeNoUndo"/>
230
void
ITextRange
.BeginChangeNoUndo()
238
/// <see cref="
ITextRange
.EndChange()"/>
240
void
ITextRange
.EndChange()
248
/// <see cref="
ITextRange
.EndChange(bool,bool)"/>
250
void
ITextRange
.EndChange(bool disableScroll, bool skipEvents)
258
/// <see cref="
ITextRange
.DeclareChangeBlock()"/>
260
IDisposable
ITextRange
.DeclareChangeBlock()
266
/// <see cref="
ITextRange
.DeclareChangeBlock(bool)"/>
268
IDisposable
ITextRange
.DeclareChangeBlock(bool disableScroll)
274
/// <see cref="
ITextRange
.NotifyChanged"/>
276
void
ITextRange
.NotifyChanged(bool disableScroll, bool skipEvents)
293
/// <see cref="
ITextRange
.Start"/>
295
bool
ITextRange
.IgnoreTextUnitBoundaries
310
/// <see cref="
ITextRange
.Start"/>
312
ITextPointer
ITextRange
.Start
323
/// <see cref="
ITextRange
.End"/>
325
ITextPointer
ITextRange
.End
336
/// <see cref="
ITextRange
.IsEmpty"/>
338
bool
ITextRange
.IsEmpty
349
/// <see cref="
ITextRange
.TextSegments"/>
351
List<TextSegment>
ITextRange
.TextSegments
368
/// <see cref="
ITextRange
.HasConcreteTextContainer"/>
370
bool
ITextRange
.HasConcreteTextContainer
381
/// <see cref="
ITextRange
.Text"/>
383
string
ITextRange
.Text
401
/// <see cref="
ITextRange
.Xml"/>
403
string
ITextRange
.Xml
416
/// <see cref="
ITextRange
.ChangeBlockLevel"/>
418
int
ITextRange
.ChangeBlockLevel
435
/// <see cref="
ITextRange
.IsTableCellRange"/>
437
bool
ITextRange
.IsTableCellRange
454
/// <see cref="
ITextRange
.Changed"/>
456
event EventHandler
ITextRange
.Changed
470
/// <see cref="
ITextRange
.FireChanged"/>
472
void
ITextRange
.FireChanged()
488
/// <see cref="
ITextRange
._IsTableCellRange"/>
490
bool
ITextRange
._IsTableCellRange
504
/// <see cref="
ITextRange
._TextSegments"/>
506
List<TextSegment>
ITextRange
._TextSegments
520
/// <see cref="
ITextRange
._ChangeBlockLevel"/>
522
int
ITextRange
._ChangeBlockLevel
536
/// <see cref="
ITextRange
._ChangeBlockUndoRecord"/>
538
ChangeBlockUndoRecord
ITextRange
._ChangeBlockUndoRecord
553
/// <see cref="
ITextRange
._IsChanged"/>
555
bool
ITextRange
._IsChanged
570
/// <see cref="
ITextRange
._ContentGeneration"/>
572
uint
ITextRange
._ContentGeneration
644
return ((
ITextRange
)this).Contains(textPointer);
675
((
ITextRange
)this).Select(position1, position2);
690
((
ITextRange
)this).SelectWord(textPointer);
701
((
ITextRange
)this).SelectParagraph(position);
856
return ((
ITextRange
)this).GetPropertyValue(formattingProperty);
869
return ((
ITextRange
)this).GetUIElementSelected();
890
return ((
ITextRange
)this).CanSave(dataFormat);
934
((
ITextRange
)this).Save(stream, dataFormat);
968
((
ITextRange
)this).Save(stream, dataFormat, preserveTextElements);
1257
return (TextPointer)((
ITextRange
)this).Start;
1271
return (TextPointer)((
ITextRange
)this).End;
1282
return ((
ITextRange
)this).IsEmpty;
1296
return ((
ITextRange
)this).HasConcreteTextContainer;
1336
return ((
ITextRange
)this).Text;
1341
((
ITextRange
)this).Text = value;
1352
return ((
ITextRange
)this).Xml;
1388
return ((
ITextRange
)this).IsTableCellRange;
1462
((
ITextRange
)this).BeginChange();
1476
((
ITextRange
)this).EndChange();
1514
return ((
ITextRange
)this).DeclareChangeBlock();
1525
return ((
ITextRange
)this).DeclareChangeBlock(disableScroll);
1840
internal ChangeBlock(
ITextRange
range, bool disableScroll)
1853
private readonly
ITextRange
_range;
System\Windows\Documents\TextRangeBase.cs (44)
57
internal static bool Contains(
ITextRange
thisRange, ITextPointer textPointer)
112
internal static void Select(
ITextRange
thisRange, ITextPointer position1, ITextPointer position2)
151
internal static void Select(
ITextRange
thisRange, ITextPointer position1, ITextPointer position2, bool includeCellAtMovingPosition)
183
internal static void SelectWord(
ITextRange
thisRange, ITextPointer position)
201
internal static TextSegment GetAutoWord(
ITextRange
thisRange)
233
internal static void SelectParagraph(
ITextRange
thisRange, ITextPointer position)
251
internal static void ApplyInitialTypingHeuristics(
ITextRange
thisRange)
278
internal static void ApplyFinalTypingHeuristics(
ITextRange
thisRange, bool overType)
310
/// <see cref="System.Windows.Documents.
ITextRange
.ApplyTypingHeuristics"/>
312
internal static void ApplyTypingHeuristics(
ITextRange
thisRange, bool overType)
372
internal static object GetPropertyValue(
ITextRange
thisRange, DependencyProperty formattingProperty)
386
private static object GetCharacterPropertyValue(
ITextRange
thisRange, DependencyProperty formattingProperty)
457
private static object GetParagraphPropertyValue(
ITextRange
thisRange, DependencyProperty formattingProperty)
508
internal static bool IsParagraphBoundaryCrossed(
ITextRange
thisRange)
539
/// <see cref="
ITextRange
.BeginChange"/>
541
internal static void BeginChange(
ITextRange
thisRange)
547
/// <see cref="
ITextRange
.BeginChangeNoUndo"/>
549
internal static void BeginChangeNoUndo(
ITextRange
thisRange)
555
/// <see cref="
ITextRange
.EndChange()"/>
557
internal static void EndChange(
ITextRange
thisRange)
563
/// <see cref="
ITextRange
.EndChange(bool,bool)"/>
565
internal static void EndChange(
ITextRange
thisRange, bool disableScroll, bool skipEvents)
630
/// <see cref="
ITextRange
.NotifyChanged(bool,bool)"/>
632
internal static void NotifyChanged(
ITextRange
thisRange, bool disableScroll)
1186
internal static ITextPointer GetStart(
ITextRange
thisRange)
1194
internal static ITextPointer GetEnd(
ITextRange
thisRange)
1202
internal static bool GetIsEmpty(
ITextRange
thisRange)
1219
internal static List<TextSegment> GetTextSegments(
ITextRange
thisRange)
1236
internal static string GetText(
ITextRange
thisRange)
1280
internal static void SetText(
ITextRange
thisRange, string textData)
1455
internal static string GetXml(
ITextRange
thisRange)
1468
internal static bool CanSave(
ITextRange
thisRange, string dataFormat)
1481
internal static bool CanLoad(
ITextRange
thisRange, string dataFormat)
1494
internal static void Save(
ITextRange
thisRange, Stream stream, string dataFormat, bool preserveTextElements)
1602
internal static int GetChangeBlockLevel(
ITextRange
thisRange)
1613
internal static UIElement GetUIElementSelected(
ITextRange
range)
1645
internal static bool GetIsTableCellRange(
ITextRange
thisRange)
1664
private static void BeginChangeWorker(
ITextRange
thisRange, string description)
1698
private static void CreateNormalizedTextSegment(
ITextRange
thisRange, ITextPointer start, ITextPointer end)
1782
private static bool IsAtNormalizedPosition(
ITextRange
thisRange, ITextPointer position, LogicalDirection direction)
1798
private static ITextPointer GetNormalizedPosition(
ITextRange
thisRange, ITextPointer position, LogicalDirection direction)
1908
private static void NormalizeRange(
ITextRange
thisRange)
1980
private static void SelectPrivate(
ITextRange
thisRange, ITextPointer position1, ITextPointer position2, bool includeCellAtMovingPosition, bool markRangeChanged)
2078
private static void MarkRangeChanged(
ITextRange
thisRange)
System\Windows\Documents\TextRangeEditLists.cs (1)
270
((
ITextRange
)range).Select(insertionPosition, insertionPosition);
System\Windows\Documents\TextRangeEditTables.cs (2)
36
internal static bool GetColumnRange(
ITextRange
range, Table table, out int firstColumnIndex, out int lastColumnIndex)
396
internal static void IdentifyValidBoundaries(
ITextRange
range, out ITextPointer start, out ITextPointer end)
System\Windows\Documents\TextRangeSerialization.cs (11)
31
internal static void WriteXaml(XmlWriter xmlWriter,
ITextRange
range, bool useFlowDocumentAsRoot, WpfPayload wpfPayload)
56
internal static void WriteXaml(XmlWriter xmlWriter,
ITextRange
range, bool useFlowDocumentAsRoot, WpfPayload wpfPayload, bool preserveTextElements)
333
private static void WriteXamlTableCellRange(XmlWriter xmlWriter,
ITextRange
range, XamlTypeMapper xamlTypeMapper, ref int elementLevel, WpfPayload wpfPayload, bool preserveTextElements)
361
ITextRange
textRange = new TextRange(textSegment.Start, textSegment.End);
414
private static int WriteOpeningTags(
ITextRange
range, ITextPointer thisElement, ITextPointer scope, XmlWriter xmlWriter, XamlTypeMapper xamlTypeMapper, bool reduceElement, out bool ignoreWriteHyperlinkEnd, ref List<int> ignoreList, bool preserveTextElements)
534
private static void WriteStartXamlElement(
ITextRange
range, ITextPointer textReader, XmlWriter xmlWriter, XamlTypeMapper xamlTypeMapper, bool reduceElement, bool preserveTextElements)
599
private static void WriteTableColumnsInformation(
ITextRange
range, Table table, XmlWriter xmlWriter, XamlTypeMapper xamlTypeMapper)
643
private static void WriteRootFlowDocument(
ITextRange
range, ITextPointer context, XmlWriter xmlWriter, XamlTypeMapper xamlTypeMapper, bool lastParagraphMustBeMerged, bool useFlowDocumentAsRoot)
1665
private static ITextPointer FindSerializationCommonAncestor(
ITextRange
range)
1718
private static bool IsAcceptableAncestor(ITextPointer commonAncestor,
ITextRange
range)
1914
private static ITextPointer GetHyperlinkStart(
ITextRange
range)
System\windows\Documents\TextSelection.cs (12)
84
void
ITextRange
.Select(ITextPointer anchorPosition, ITextPointer movingPosition)
101
void
ITextRange
.SelectWord(ITextPointer position)
120
void
ITextRange
.SelectParagraph(ITextPointer position)
138
/// <see cref="System.Windows.Documents.
ITextRange
.ApplyTypingHeuristics"/>
140
void
ITextRange
.ApplyTypingHeuristics(bool overType)
165
object
ITextRange
.GetPropertyValue(DependencyProperty formattingProperty)
196
bool
ITextRange
._IsChanged
219
void
ITextRange
.NotifyChanged(bool disableScroll, bool skipEvents)
270
string
ITextRange
.Text
287
((ITextSelection)this).SetCaretToPosition(((
ITextRange
)this).End, LogicalDirection.Forward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false);
291
SetActivePositions(((
ITextRange
)this).Start, ((
ITextRange
)this).End);
System\windows\Documents\TextSelectionHighlightLayer.cs (1)
303
private bool IsTextRangeEmpty(
ITextRange
textRange)
System\Windows\Documents\TextStore.cs (3)
515
ITextRange
range = new TextRange(start, end, true /* ignoreTextUnitBoundaries */);
673
ITextRange
range = new TextRange(this.TextSelection.AnchorPosition, this.TextSelection.MovingPosition);
1945
ITextRange
range;
System\Windows\Documents\WpfPayload.cs (2)
159
internal static string SaveRange(
ITextRange
range, ref Stream stream, bool useFlowDocumentAsRoot)
186
internal static string SaveRange(
ITextRange
range, ref Stream stream, bool useFlowDocumentAsRoot, bool preserveTextElements)