1 interface inheriting from ITextRange
PresentationFramework (1)
System\Windows\Documents\ITextSelection.cs (1)
18internal interface ITextSelection : ITextRange
1 implementation of ITextRange
PresentationFramework (1)
System\Windows\Documents\TextRange.cs (1)
22public class TextRange : ITextRange
210 references to ITextRange
PresentationFramework (210)
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (2)
433ITextRange textRange = selection as ITextRange;
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (2)
359ITextRange textRange = selection as ITextRange;
MS\Internal\Annotations\Component\HighlightComponent.cs (1)
444internal bool IsSelected(ITextRange selection)
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (6)
493_selection = textContainer.TextSelection as ITextRange; 885ITextRange selection = sender as ITextRange; 955ITextRange selection = container.TextSelection as ITextRange; 1178private ITextRange _selection; // we need to listen to selection.Changed event
MS\Internal\Documents\DocumentGrid.cs (1)
1275ITextRange textRange = TextEditor.Selection;
MS\Internal\Documents\DocumentViewerHelper.cs (3)
76internal static ITextRange Find(FindToolBar findToolBar, TextEditor textEditor, ITextView textView, ITextView masterPageTextView) 81ITextRange textSelection; 85ITextRange findResult = null;
MS\Internal\Documents\IFlowDocumentViewer.cs (3)
53void ShowFindResult(ITextRange findResult); 318void IFlowDocumentViewer.ShowFindResult(ITextRange findResult) 673void IFlowDocumentViewer.ShowFindResult(ITextRange findResult)
System\Windows\Annotations\AnnotationHelper.cs (5)
677ITextRange textRange = new TextRange(start, end); 881private static Annotation CreateAnnotationForSelection(AnnotationService service, ITextRange textSelection, XmlQualifiedName annotationType, string author) 946ITextRange anchor = new TextRange(selection.Start, selection.End); 965private static Annotation ProcessHighlights(AnnotationService service, ITextRange textRange, string author, Nullable<Color> color, bool create) 1017private static Annotation CreateHighlight(AnnotationService service, ITextRange textRange, string author, Nullable<Color> color)
System\Windows\Controls\DocumentViewer.cs (1)
2177ITextRange findResult = Find(_findToolbar);
System\Windows\Controls\FlowDocumentReader.cs (1)
1567ITextRange findResult;
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
1537ITextRange findResult;
System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
697internal ITextRange Find(FindToolBar findToolBar)
System\Windows\Controls\SinglePageViewer.cs (1)
1154ITextRange findResult;
System\Windows\Controls\TextAdaptor.cs (1)
494ITextRange selection = _textContainer.TextSelection;
System\Windows\Controls\TextRangeAdaptor.cs (4)
639ITextRange textRange = new TextRange(_start, _end); 851ITextRange textRange = new TextRange(position, position); 1108ITextRange paragraphRange = new TextRange(position, position); 1772ITextRange findResult = TextFindEngine.Find(_start, _end, text, findFlags, CultureInfo.CurrentCulture);
System\Windows\Documents\ImmComposition.cs (4)
1100ITextRange range; 1328ITextRange range; 1396private static string GetSurroundingText(ITextRange range, out int offsetStart) 1530ITextRange range = _editor.Selection;
System\Windows\Documents\SpellerError.cs (1)
64ITextRange range = new TextRange(_start, _end);
System\windows\Documents\TextEditor.cs (3)
428internal void SetText(ITextRange range, string text, CultureInfo cultureInfo) 1160internal string _FilterText(string textData, ITextRange range) 1170internal string _FilterText(string textData, ITextRange range, bool filterMaxLength)
System\windows\Documents\TextEditorDragDrop.cs (1)
677private ITextRange _dragSourceTextRange;
System\windows\Documents\TextEditorSelection.cs (5)
122ITextRange textRange = new TextRange(lineRange.Start, lineRange.End); 460ITextRange paragraphRange = new TextRange(movingPointer, movingPointer); 511ITextRange paragraphRange = new TextRange(movingPointer, movingPointer); 1317ITextRange paragraphRange = new TextRange(movingPointer, movingPointer); 1358ITextRange paragraphRange = new TextRange(movingPointer, movingPointer);
System\windows\Documents\TextEditorTyping.cs (2)
921ITextRange textRange = new TextRange(This.Selection.Start, wordBoundary); 983ITextRange textRange = new TextRange(wordBoundary, This.Selection.End);
System\Windows\Documents\TextFindEngine.cs (1)
80public static ITextRange Find(
System\Windows\Documents\TextRange.cs (84)
130bool ITextRange.Contains(ITextPointer position) 140void ITextRange.Select(ITextPointer position1, ITextPointer position2) 150void ITextRange.SelectWord(ITextPointer position) 160void ITextRange.SelectParagraph(ITextPointer position) 168/// <see cref="System.Windows.Documents.ITextRange.ApplyTypingHeuristics"/> 170void ITextRange.ApplyTypingHeuristics(bool overType) 177object ITextRange.GetPropertyValue(DependencyProperty formattingProperty) 184UIElement ITextRange.GetUIElementSelected() 197bool ITextRange.CanSave(string dataFormat) 204void ITextRange.Save(Stream stream, string dataFormat) 211void ITextRange.Save(Stream stream, string dataFormat, bool preserveTextElements) 225/// <see cref="ITextRange.BeginChange"/> 227void ITextRange.BeginChange() 235/// <see cref="ITextRange.BeginChangeNoUndo"/> 237void ITextRange.BeginChangeNoUndo() 245/// <see cref="ITextRange.EndChange()"/> 247void ITextRange.EndChange() 255/// <see cref="ITextRange.EndChange(bool,bool)"/> 257void ITextRange.EndChange(bool disableScroll, bool skipEvents) 265/// <see cref="ITextRange.DeclareChangeBlock()"/> 267IDisposable ITextRange.DeclareChangeBlock() 273/// <see cref="ITextRange.DeclareChangeBlock(bool)"/> 275IDisposable ITextRange.DeclareChangeBlock(bool disableScroll) 281/// <see cref="ITextRange.NotifyChanged"/> 283void ITextRange.NotifyChanged(bool disableScroll, bool skipEvents) 300/// <see cref="ITextRange.Start"/> 302bool ITextRange.IgnoreTextUnitBoundaries 317/// <see cref="ITextRange.Start"/> 319ITextPointer ITextRange.Start 330/// <see cref="ITextRange.End"/> 332ITextPointer ITextRange.End 343/// <see cref="ITextRange.IsEmpty"/> 345bool ITextRange.IsEmpty 356/// <see cref="ITextRange.TextSegments"/> 358List<TextSegment> ITextRange.TextSegments 375/// <see cref="ITextRange.HasConcreteTextContainer"/> 377bool ITextRange.HasConcreteTextContainer 388/// <see cref="ITextRange.Text"/> 390string ITextRange.Text 408/// <see cref="ITextRange.Xml"/> 410string ITextRange.Xml 423/// <see cref="ITextRange.ChangeBlockLevel"/> 425int ITextRange.ChangeBlockLevel 442/// <see cref="ITextRange.IsTableCellRange"/> 444bool ITextRange.IsTableCellRange 461/// <see cref="ITextRange.Changed"/> 463event EventHandler ITextRange.Changed 477/// <see cref="ITextRange.FireChanged"/> 479void ITextRange.FireChanged() 495/// <see cref="ITextRange._IsTableCellRange"/> 497bool ITextRange._IsTableCellRange 511/// <see cref="ITextRange._TextSegments"/> 513List<TextSegment> ITextRange._TextSegments 527/// <see cref="ITextRange._ChangeBlockLevel"/> 529int ITextRange._ChangeBlockLevel 543/// <see cref="ITextRange._ChangeBlockUndoRecord"/> 545ChangeBlockUndoRecord ITextRange._ChangeBlockUndoRecord 560/// <see cref="ITextRange._IsChanged"/> 562bool ITextRange._IsChanged 577/// <see cref="ITextRange._ContentGeneration"/> 579uint ITextRange._ContentGeneration 651return ((ITextRange)this).Contains(textPointer); 682((ITextRange)this).Select(position1, position2); 697((ITextRange)this).SelectWord(textPointer); 708((ITextRange)this).SelectParagraph(position); 865return ((ITextRange)this).GetPropertyValue(formattingProperty); 878return ((ITextRange)this).GetUIElementSelected(); 899return ((ITextRange)this).CanSave(dataFormat); 943((ITextRange)this).Save(stream, dataFormat); 977((ITextRange)this).Save(stream, dataFormat, preserveTextElements); 1266return (TextPointer)((ITextRange)this).Start; 1280return (TextPointer)((ITextRange)this).End; 1291return ((ITextRange)this).IsEmpty; 1305return ((ITextRange)this).HasConcreteTextContainer; 1345return ((ITextRange)this).Text; 1350((ITextRange)this).Text = value; 1361return ((ITextRange)this).Xml; 1397return ((ITextRange)this).IsTableCellRange; 1471((ITextRange)this).BeginChange(); 1485((ITextRange)this).EndChange(); 1523return ((ITextRange)this).DeclareChangeBlock(); 1534return ((ITextRange)this).DeclareChangeBlock(disableScroll); 1848internal ChangeBlock(ITextRange range, bool disableScroll) 1861private readonly ITextRange _range;
System\Windows\Documents\TextRangeBase.cs (44)
58internal static bool Contains(ITextRange thisRange, ITextPointer textPointer) 113internal static void Select(ITextRange thisRange, ITextPointer position1, ITextPointer position2) 152internal static void Select(ITextRange thisRange, ITextPointer position1, ITextPointer position2, bool includeCellAtMovingPosition) 184internal static void SelectWord(ITextRange thisRange, ITextPointer position) 202internal static TextSegment GetAutoWord(ITextRange thisRange) 234internal static void SelectParagraph(ITextRange thisRange, ITextPointer position) 252internal static void ApplyInitialTypingHeuristics(ITextRange thisRange) 279internal static void ApplyFinalTypingHeuristics(ITextRange thisRange, bool overType) 311/// <see cref="System.Windows.Documents.ITextRange.ApplyTypingHeuristics"/> 313internal static void ApplyTypingHeuristics(ITextRange thisRange, bool overType) 373internal static object GetPropertyValue(ITextRange thisRange, DependencyProperty formattingProperty) 387private static object GetCharacterPropertyValue(ITextRange thisRange, DependencyProperty formattingProperty) 458private static object GetParagraphPropertyValue(ITextRange thisRange, DependencyProperty formattingProperty) 509internal static bool IsParagraphBoundaryCrossed(ITextRange thisRange) 540/// <see cref="ITextRange.BeginChange"/> 542internal static void BeginChange(ITextRange thisRange) 548/// <see cref="ITextRange.BeginChangeNoUndo"/> 550internal static void BeginChangeNoUndo(ITextRange thisRange) 556/// <see cref="ITextRange.EndChange()"/> 558internal static void EndChange(ITextRange thisRange) 564/// <see cref="ITextRange.EndChange(bool,bool)"/> 566internal static void EndChange(ITextRange thisRange, bool disableScroll, bool skipEvents) 631/// <see cref="ITextRange.NotifyChanged(bool,bool)"/> 633internal static void NotifyChanged(ITextRange thisRange, bool disableScroll) 1187internal static ITextPointer GetStart(ITextRange thisRange) 1195internal static ITextPointer GetEnd(ITextRange thisRange) 1203internal static bool GetIsEmpty(ITextRange thisRange) 1220internal static List<TextSegment> GetTextSegments(ITextRange thisRange) 1237internal static string GetText(ITextRange thisRange) 1281internal static void SetText(ITextRange thisRange, string textData) 1456internal static string GetXml(ITextRange thisRange) 1469internal static bool CanSave(ITextRange thisRange, string dataFormat) 1482internal static bool CanLoad(ITextRange thisRange, string dataFormat) 1495internal static void Save(ITextRange thisRange, Stream stream, string dataFormat, bool preserveTextElements) 1603internal static int GetChangeBlockLevel(ITextRange thisRange) 1614internal static UIElement GetUIElementSelected(ITextRange range) 1646internal static bool GetIsTableCellRange(ITextRange thisRange) 1665private static void BeginChangeWorker(ITextRange thisRange, string description) 1699private static void CreateNormalizedTextSegment(ITextRange thisRange, ITextPointer start, ITextPointer end) 1784private static bool IsAtNormalizedPosition(ITextRange thisRange, ITextPointer position, LogicalDirection direction) 1800private static ITextPointer GetNormalizedPosition(ITextRange thisRange, ITextPointer position, LogicalDirection direction) 1910private static void NormalizeRange(ITextRange thisRange) 1982private static void SelectPrivate(ITextRange thisRange, ITextPointer position1, ITextPointer position2, bool includeCellAtMovingPosition, bool markRangeChanged) 2080private static void MarkRangeChanged(ITextRange thisRange)
System\Windows\Documents\TextRangeEditLists.cs (1)
271((ITextRange)range).Select(insertionPosition, insertionPosition);
System\Windows\Documents\TextRangeEditTables.cs (2)
37internal static bool GetColumnRange(ITextRange range, Table table, out int firstColumnIndex, out int lastColumnIndex) 397internal static void IdentifyValidBoundaries(ITextRange range, out ITextPointer start, out ITextPointer end)
System\Windows\Documents\TextRangeSerialization.cs (11)
32internal static void WriteXaml(XmlWriter xmlWriter, ITextRange range, bool useFlowDocumentAsRoot, WpfPayload wpfPayload) 57internal static void WriteXaml(XmlWriter xmlWriter, ITextRange range, bool useFlowDocumentAsRoot, WpfPayload wpfPayload, bool preserveTextElements) 334private static void WriteXamlTableCellRange(XmlWriter xmlWriter, ITextRange range, XamlTypeMapper xamlTypeMapper, ref int elementLevel, WpfPayload wpfPayload, bool preserveTextElements) 362ITextRange textRange = new TextRange(textSegment.Start, textSegment.End); 415private static int WriteOpeningTags(ITextRange range, ITextPointer thisElement, ITextPointer scope, XmlWriter xmlWriter, XamlTypeMapper xamlTypeMapper, bool reduceElement, out bool ignoreWriteHyperlinkEnd, ref List<int> ignoreList, bool preserveTextElements) 535private static void WriteStartXamlElement(ITextRange range, ITextPointer textReader, XmlWriter xmlWriter, XamlTypeMapper xamlTypeMapper, bool reduceElement, bool preserveTextElements) 600private static void WriteTableColumnsInformation(ITextRange range, Table table, XmlWriter xmlWriter, XamlTypeMapper xamlTypeMapper) 644private static void WriteRootFlowDocument(ITextRange range, ITextPointer context, XmlWriter xmlWriter, XamlTypeMapper xamlTypeMapper, bool lastParagraphMustBeMerged, bool useFlowDocumentAsRoot) 1666private static ITextPointer FindSerializationCommonAncestor(ITextRange range) 1719private static bool IsAcceptableAncestor(ITextPointer commonAncestor, ITextRange range) 1915private static ITextPointer GetHyperlinkStart(ITextRange range)
System\windows\Documents\TextSelection.cs (12)
85void ITextRange.Select(ITextPointer anchorPosition, ITextPointer movingPosition) 102void ITextRange.SelectWord(ITextPointer position) 121void ITextRange.SelectParagraph(ITextPointer position) 139/// <see cref="System.Windows.Documents.ITextRange.ApplyTypingHeuristics"/> 141void ITextRange.ApplyTypingHeuristics(bool overType) 166object ITextRange.GetPropertyValue(DependencyProperty formattingProperty) 197bool ITextRange._IsChanged 226void ITextRange.NotifyChanged(bool disableScroll, bool skipEvents) 283string ITextRange.Text 300((ITextSelection)this).SetCaretToPosition(((ITextRange)this).End, LogicalDirection.Forward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false); 304SetActivePositions(((ITextRange)this).Start, ((ITextRange)this).End);
System\windows\Documents\TextSelectionHighlightLayer.cs (1)
304private bool IsTextRangeEmpty(ITextRange textRange)
System\Windows\Documents\TextStore.cs (3)
516ITextRange range = new TextRange(start, end, true /* ignoreTextUnitBoundaries */); 674ITextRange range = new TextRange(this.TextSelection.AnchorPosition, this.TextSelection.MovingPosition); 1952ITextRange range;
System\Windows\Documents\WpfPayload.cs (2)
160internal static string SaveRange(ITextRange range, ref Stream stream, bool useFlowDocumentAsRoot) 187internal static string SaveRange(ITextRange range, ref Stream stream, bool useFlowDocumentAsRoot, bool preserveTextElements)