1 interface inheriting from ITextRange
PresentationFramework (1)
System\Windows\Documents\ITextSelection.cs (1)
26internal interface ITextSelection : ITextRange
1 implementation of ITextRange
PresentationFramework (1)
System\Windows\Documents\TextRange.cs (1)
25public class TextRange : ITextRange
210 references to ITextRange
PresentationFramework (210)
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (2)
444ITextRange textRange = selection as ITextRange;
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (2)
368ITextRange textRange = selection as ITextRange;
MS\Internal\Annotations\Component\HighlightComponent.cs (1)
452internal bool IsSelected(ITextRange selection)
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (6)
499_selection = textContainer.TextSelection as ITextRange; 891ITextRange selection = sender as ITextRange; 961ITextRange selection = container.TextSelection as ITextRange; 1184private ITextRange _selection; // we need to listen to selection.Changed event
MS\Internal\Documents\DocumentGrid.cs (1)
1282ITextRange textRange = TextEditor.Selection;
MS\Internal\Documents\DocumentViewerHelper.cs (3)
78internal static ITextRange Find(FindToolBar findToolBar, TextEditor textEditor, ITextView textView, ITextView masterPageTextView) 83ITextRange textSelection; 87ITextRange findResult = null;
MS\Internal\Documents\IFlowDocumentViewer.cs (3)
56void ShowFindResult(ITextRange findResult); 321void IFlowDocumentViewer.ShowFindResult(ITextRange findResult) 676void IFlowDocumentViewer.ShowFindResult(ITextRange findResult)
System\Windows\Annotations\AnnotationHelper.cs (5)
689ITextRange textRange = new TextRange(start, end); 893private static Annotation CreateAnnotationForSelection(AnnotationService service, ITextRange textSelection, XmlQualifiedName annotationType, string author) 958ITextRange anchor = new TextRange(selection.Start, selection.End); 977private static Annotation ProcessHighlights(AnnotationService service, ITextRange textRange, string author, Nullable<Color> color, bool create) 1029private static Annotation CreateHighlight(AnnotationService service, ITextRange textRange, string author, Nullable<Color> color)
System\Windows\Controls\DocumentViewer.cs (1)
2189ITextRange findResult = Find(_findToolbar);
System\Windows\Controls\FlowDocumentReader.cs (1)
1572ITextRange findResult;
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
1540ITextRange findResult;
System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
702internal ITextRange Find(FindToolBar findToolBar)
System\Windows\Controls\SinglePageViewer.cs (1)
1157ITextRange findResult;
System\Windows\Controls\TextAdaptor.cs (1)
497ITextRange selection = _textContainer.TextSelection;
System\Windows\Controls\TextRangeAdaptor.cs (4)
641ITextRange textRange = new TextRange(_start, _end); 853ITextRange textRange = new TextRange(position, position); 1110ITextRange paragraphRange = new TextRange(position, position); 1774ITextRange findResult = TextFindEngine.Find(_start, _end, text, findFlags, CultureInfo.CurrentCulture);
System\Windows\Documents\ImmComposition.cs (4)
1108ITextRange range; 1336ITextRange range; 1404private static string GetSurroundingText(ITextRange range, out int offsetStart) 1538ITextRange range = _editor.Selection;
System\Windows\Documents\SpellerError.cs (1)
66ITextRange range = new TextRange(_start, _end);
System\windows\Documents\TextEditor.cs (3)
434internal void SetText(ITextRange range, string text, CultureInfo cultureInfo) 1166internal string _FilterText(string textData, ITextRange range) 1176internal string _FilterText(string textData, ITextRange range, bool filterMaxLength)
System\windows\Documents\TextEditorDragDrop.cs (1)
694private ITextRange _dragSourceTextRange;
System\windows\Documents\TextEditorSelection.cs (5)
137ITextRange textRange = new TextRange(lineRange.Start, lineRange.End); 475ITextRange paragraphRange = new TextRange(movingPointer, movingPointer); 526ITextRange paragraphRange = new TextRange(movingPointer, movingPointer); 1332ITextRange paragraphRange = new TextRange(movingPointer, movingPointer); 1373ITextRange paragraphRange = new TextRange(movingPointer, movingPointer);
System\windows\Documents\TextEditorTyping.cs (2)
930ITextRange textRange = new TextRange(This.Selection.Start, wordBoundary); 992ITextRange textRange = new TextRange(wordBoundary, This.Selection.End);
System\Windows\Documents\TextFindEngine.cs (1)
88public static ITextRange Find(
System\Windows\Documents\TextRange.cs (84)
133bool ITextRange.Contains(ITextPointer position) 143void ITextRange.Select(ITextPointer position1, ITextPointer position2) 153void ITextRange.SelectWord(ITextPointer position) 163void ITextRange.SelectParagraph(ITextPointer position) 171/// <see cref="System.Windows.Documents.ITextRange.ApplyTypingHeuristics"/> 173void ITextRange.ApplyTypingHeuristics(bool overType) 180object ITextRange.GetPropertyValue(DependencyProperty formattingProperty) 187UIElement ITextRange.GetUIElementSelected() 200bool ITextRange.CanSave(string dataFormat) 207void ITextRange.Save(Stream stream, string dataFormat) 214void ITextRange.Save(Stream stream, string dataFormat, bool preserveTextElements) 228/// <see cref="ITextRange.BeginChange"/> 230void ITextRange.BeginChange() 238/// <see cref="ITextRange.BeginChangeNoUndo"/> 240void ITextRange.BeginChangeNoUndo() 248/// <see cref="ITextRange.EndChange()"/> 250void ITextRange.EndChange() 258/// <see cref="ITextRange.EndChange(bool,bool)"/> 260void ITextRange.EndChange(bool disableScroll, bool skipEvents) 268/// <see cref="ITextRange.DeclareChangeBlock()"/> 270IDisposable ITextRange.DeclareChangeBlock() 276/// <see cref="ITextRange.DeclareChangeBlock(bool)"/> 278IDisposable ITextRange.DeclareChangeBlock(bool disableScroll) 284/// <see cref="ITextRange.NotifyChanged"/> 286void ITextRange.NotifyChanged(bool disableScroll, bool skipEvents) 303/// <see cref="ITextRange.Start"/> 305bool ITextRange.IgnoreTextUnitBoundaries 320/// <see cref="ITextRange.Start"/> 322ITextPointer ITextRange.Start 333/// <see cref="ITextRange.End"/> 335ITextPointer ITextRange.End 346/// <see cref="ITextRange.IsEmpty"/> 348bool ITextRange.IsEmpty 359/// <see cref="ITextRange.TextSegments"/> 361List<TextSegment> ITextRange.TextSegments 378/// <see cref="ITextRange.HasConcreteTextContainer"/> 380bool ITextRange.HasConcreteTextContainer 391/// <see cref="ITextRange.Text"/> 393string ITextRange.Text 411/// <see cref="ITextRange.Xml"/> 413string ITextRange.Xml 426/// <see cref="ITextRange.ChangeBlockLevel"/> 428int ITextRange.ChangeBlockLevel 445/// <see cref="ITextRange.IsTableCellRange"/> 447bool ITextRange.IsTableCellRange 464/// <see cref="ITextRange.Changed"/> 466event EventHandler ITextRange.Changed 480/// <see cref="ITextRange.FireChanged"/> 482void ITextRange.FireChanged() 498/// <see cref="ITextRange._IsTableCellRange"/> 500bool ITextRange._IsTableCellRange 514/// <see cref="ITextRange._TextSegments"/> 516List<TextSegment> ITextRange._TextSegments 530/// <see cref="ITextRange._ChangeBlockLevel"/> 532int ITextRange._ChangeBlockLevel 546/// <see cref="ITextRange._ChangeBlockUndoRecord"/> 548ChangeBlockUndoRecord ITextRange._ChangeBlockUndoRecord 563/// <see cref="ITextRange._IsChanged"/> 565bool ITextRange._IsChanged 580/// <see cref="ITextRange._ContentGeneration"/> 582uint ITextRange._ContentGeneration 654return ((ITextRange)this).Contains(textPointer); 685((ITextRange)this).Select(position1, position2); 700((ITextRange)this).SelectWord(textPointer); 711((ITextRange)this).SelectParagraph(position); 868return ((ITextRange)this).GetPropertyValue(formattingProperty); 881return ((ITextRange)this).GetUIElementSelected(); 902return ((ITextRange)this).CanSave(dataFormat); 946((ITextRange)this).Save(stream, dataFormat); 980((ITextRange)this).Save(stream, dataFormat, preserveTextElements); 1269return (TextPointer)((ITextRange)this).Start; 1283return (TextPointer)((ITextRange)this).End; 1294return ((ITextRange)this).IsEmpty; 1308return ((ITextRange)this).HasConcreteTextContainer; 1348return ((ITextRange)this).Text; 1353((ITextRange)this).Text = value; 1364return ((ITextRange)this).Xml; 1400return ((ITextRange)this).IsTableCellRange; 1474((ITextRange)this).BeginChange(); 1488((ITextRange)this).EndChange(); 1526return ((ITextRange)this).DeclareChangeBlock(); 1537return ((ITextRange)this).DeclareChangeBlock(disableScroll); 1851internal ChangeBlock(ITextRange range, bool disableScroll) 1864private readonly ITextRange _range;
System\Windows\Documents\TextRangeBase.cs (44)
61internal static bool Contains(ITextRange thisRange, ITextPointer textPointer) 116internal static void Select(ITextRange thisRange, ITextPointer position1, ITextPointer position2) 155internal static void Select(ITextRange thisRange, ITextPointer position1, ITextPointer position2, bool includeCellAtMovingPosition) 187internal static void SelectWord(ITextRange thisRange, ITextPointer position) 205internal static TextSegment GetAutoWord(ITextRange thisRange) 237internal static void SelectParagraph(ITextRange thisRange, ITextPointer position) 255internal static void ApplyInitialTypingHeuristics(ITextRange thisRange) 282internal static void ApplyFinalTypingHeuristics(ITextRange thisRange, bool overType) 314/// <see cref="System.Windows.Documents.ITextRange.ApplyTypingHeuristics"/> 316internal static void ApplyTypingHeuristics(ITextRange thisRange, bool overType) 376internal static object GetPropertyValue(ITextRange thisRange, DependencyProperty formattingProperty) 390private static object GetCharacterPropertyValue(ITextRange thisRange, DependencyProperty formattingProperty) 461private static object GetParagraphPropertyValue(ITextRange thisRange, DependencyProperty formattingProperty) 512internal static bool IsParagraphBoundaryCrossed(ITextRange thisRange) 543/// <see cref="ITextRange.BeginChange"/> 545internal static void BeginChange(ITextRange thisRange) 551/// <see cref="ITextRange.BeginChangeNoUndo"/> 553internal static void BeginChangeNoUndo(ITextRange thisRange) 559/// <see cref="ITextRange.EndChange()"/> 561internal static void EndChange(ITextRange thisRange) 567/// <see cref="ITextRange.EndChange(bool,bool)"/> 569internal static void EndChange(ITextRange thisRange, bool disableScroll, bool skipEvents) 634/// <see cref="ITextRange.NotifyChanged(bool,bool)"/> 636internal static void NotifyChanged(ITextRange thisRange, bool disableScroll) 1190internal static ITextPointer GetStart(ITextRange thisRange) 1198internal static ITextPointer GetEnd(ITextRange thisRange) 1206internal static bool GetIsEmpty(ITextRange thisRange) 1223internal static List<TextSegment> GetTextSegments(ITextRange thisRange) 1240internal static string GetText(ITextRange thisRange) 1284internal static void SetText(ITextRange thisRange, string textData) 1459internal static string GetXml(ITextRange thisRange) 1472internal static bool CanSave(ITextRange thisRange, string dataFormat) 1485internal static bool CanLoad(ITextRange thisRange, string dataFormat) 1498internal static void Save(ITextRange thisRange, Stream stream, string dataFormat, bool preserveTextElements) 1606internal static int GetChangeBlockLevel(ITextRange thisRange) 1617internal static UIElement GetUIElementSelected(ITextRange range) 1649internal static bool GetIsTableCellRange(ITextRange thisRange) 1668private static void BeginChangeWorker(ITextRange thisRange, string description) 1702private static void CreateNormalizedTextSegment(ITextRange thisRange, ITextPointer start, ITextPointer end) 1787private static bool IsAtNormalizedPosition(ITextRange thisRange, ITextPointer position, LogicalDirection direction) 1803private static ITextPointer GetNormalizedPosition(ITextRange thisRange, ITextPointer position, LogicalDirection direction) 1913private static void NormalizeRange(ITextRange thisRange) 1985private static void SelectPrivate(ITextRange thisRange, ITextPointer position1, ITextPointer position2, bool includeCellAtMovingPosition, bool markRangeChanged) 2083private static void MarkRangeChanged(ITextRange thisRange)
System\Windows\Documents\TextRangeEditLists.cs (1)
273((ITextRange)range).Select(insertionPosition, insertionPosition);
System\Windows\Documents\TextRangeEditTables.cs (2)
39internal static bool GetColumnRange(ITextRange range, Table table, out int firstColumnIndex, out int lastColumnIndex) 399internal static void IdentifyValidBoundaries(ITextRange range, out ITextPointer start, out ITextPointer end)
System\Windows\Documents\TextRangeSerialization.cs (11)
38internal static void WriteXaml(XmlWriter xmlWriter, ITextRange range, bool useFlowDocumentAsRoot, WpfPayload wpfPayload) 63internal static void WriteXaml(XmlWriter xmlWriter, ITextRange range, bool useFlowDocumentAsRoot, WpfPayload wpfPayload, bool preserveTextElements) 340private static void WriteXamlTableCellRange(XmlWriter xmlWriter, ITextRange range, XamlTypeMapper xamlTypeMapper, ref int elementLevel, WpfPayload wpfPayload, bool preserveTextElements) 368ITextRange textRange = new TextRange(textSegment.Start, textSegment.End); 421private static int WriteOpeningTags(ITextRange range, ITextPointer thisElement, ITextPointer scope, XmlWriter xmlWriter, XamlTypeMapper xamlTypeMapper, bool reduceElement, out bool ignoreWriteHyperlinkEnd, ref List<int> ignoreList, bool preserveTextElements) 541private static void WriteStartXamlElement(ITextRange range, ITextPointer textReader, XmlWriter xmlWriter, XamlTypeMapper xamlTypeMapper, bool reduceElement, bool preserveTextElements) 606private static void WriteTableColumnsInformation(ITextRange range, Table table, XmlWriter xmlWriter, XamlTypeMapper xamlTypeMapper) 650private static void WriteRootFlowDocument(ITextRange range, ITextPointer context, XmlWriter xmlWriter, XamlTypeMapper xamlTypeMapper, bool lastParagraphMustBeMerged, bool useFlowDocumentAsRoot) 1672private static ITextPointer FindSerializationCommonAncestor(ITextRange range) 1725private static bool IsAcceptableAncestor(ITextPointer commonAncestor, ITextRange range) 1921private static ITextPointer GetHyperlinkStart(ITextRange range)
System\windows\Documents\TextSelection.cs (12)
88void ITextRange.Select(ITextPointer anchorPosition, ITextPointer movingPosition) 105void ITextRange.SelectWord(ITextPointer position) 124void ITextRange.SelectParagraph(ITextPointer position) 142/// <see cref="System.Windows.Documents.ITextRange.ApplyTypingHeuristics"/> 144void ITextRange.ApplyTypingHeuristics(bool overType) 169object ITextRange.GetPropertyValue(DependencyProperty formattingProperty) 200bool ITextRange._IsChanged 229void ITextRange.NotifyChanged(bool disableScroll, bool skipEvents) 286string ITextRange.Text 303((ITextSelection)this).SetCaretToPosition(((ITextRange)this).End, LogicalDirection.Forward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false); 307SetActivePositions(((ITextRange)this).Start, ((ITextRange)this).End);
System\windows\Documents\TextSelectionHighlightLayer.cs (1)
306private bool IsTextRangeEmpty(ITextRange textRange)
System\Windows\Documents\TextStore.cs (3)
527ITextRange range = new TextRange(start, end, true /* ignoreTextUnitBoundaries */); 685ITextRange range = new TextRange(this.TextSelection.AnchorPosition, this.TextSelection.MovingPosition); 1963ITextRange range;
System\Windows\Documents\WpfPayload.cs (2)
166internal static string SaveRange(ITextRange range, ref Stream stream, bool useFlowDocumentAsRoot) 193internal static string SaveRange(ITextRange range, ref Stream stream, bool useFlowDocumentAsRoot, bool preserveTextElements)