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