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)
16public 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; 889ITextRange selection = sender as ITextRange; 959ITextRange selection = container.TextSelection as ITextRange; 1182private 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); 306void IFlowDocumentViewer.ShowFindResult(ITextRange findResult) 661void IFlowDocumentViewer.ShowFindResult(ITextRange findResult)
System\Windows\Annotations\AnnotationHelper.cs (5)
675ITextRange textRange = new TextRange(start, end); 879private static Annotation CreateAnnotationForSelection(AnnotationService service, ITextRange textSelection, XmlQualifiedName annotationType, string author) 944ITextRange anchor = new TextRange(selection.Start, selection.End); 963private static Annotation ProcessHighlights(AnnotationService service, ITextRange textRange, string author, Nullable<Color> color, bool create) 1015private static Annotation CreateHighlight(AnnotationService service, ITextRange textRange, string author, Nullable<Color> color)
System\Windows\Controls\DocumentViewer.cs (1)
2131ITextRange findResult = Find(_findToolbar);
System\Windows\Controls\FlowDocumentReader.cs (1)
1544ITextRange findResult;
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
1504ITextRange findResult;
System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
683internal ITextRange Find(FindToolBar findToolBar)
System\Windows\Controls\SinglePageViewer.cs (1)
1156ITextRange findResult;
System\Windows\Controls\TextAdaptor.cs (1)
485ITextRange 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)
1087ITextRange range; 1315ITextRange range; 1383private static string GetSurroundingText(ITextRange range, out int offsetStart) 1517ITextRange range = _editor.Selection;
System\Windows\Documents\SpellerError.cs (1)
64ITextRange range = new TextRange(_start, _end);
System\windows\Documents\TextEditor.cs (3)
420internal void SetText(ITextRange range, string text, CultureInfo cultureInfo) 1154internal string _FilterText(string textData, ITextRange range) 1164internal 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)
912ITextRange textRange = new TextRange(This.Selection.Start, wordBoundary); 974ITextRange textRange = new TextRange(wordBoundary, This.Selection.End);
System\Windows\Documents\TextFindEngine.cs (1)
80public static ITextRange Find(
System\Windows\Documents\TextRange.cs (84)
124bool ITextRange.Contains(ITextPointer position) 134void ITextRange.Select(ITextPointer position1, ITextPointer position2) 144void ITextRange.SelectWord(ITextPointer position) 154void ITextRange.SelectParagraph(ITextPointer position) 162/// <see cref="System.Windows.Documents.ITextRange.ApplyTypingHeuristics"/> 164void ITextRange.ApplyTypingHeuristics(bool overType) 171object ITextRange.GetPropertyValue(DependencyProperty formattingProperty) 178UIElement ITextRange.GetUIElementSelected() 191bool ITextRange.CanSave(string dataFormat) 198void ITextRange.Save(Stream stream, string dataFormat) 205void ITextRange.Save(Stream stream, string dataFormat, bool preserveTextElements) 219/// <see cref="ITextRange.BeginChange"/> 221void ITextRange.BeginChange() 229/// <see cref="ITextRange.BeginChangeNoUndo"/> 231void ITextRange.BeginChangeNoUndo() 239/// <see cref="ITextRange.EndChange()"/> 241void ITextRange.EndChange() 249/// <see cref="ITextRange.EndChange(bool,bool)"/> 251void ITextRange.EndChange(bool disableScroll, bool skipEvents) 259/// <see cref="ITextRange.DeclareChangeBlock()"/> 261IDisposable ITextRange.DeclareChangeBlock() 267/// <see cref="ITextRange.DeclareChangeBlock(bool)"/> 269IDisposable ITextRange.DeclareChangeBlock(bool disableScroll) 275/// <see cref="ITextRange.NotifyChanged"/> 277void ITextRange.NotifyChanged(bool disableScroll, bool skipEvents) 294/// <see cref="ITextRange.Start"/> 296bool ITextRange.IgnoreTextUnitBoundaries 311/// <see cref="ITextRange.Start"/> 313ITextPointer ITextRange.Start 324/// <see cref="ITextRange.End"/> 326ITextPointer ITextRange.End 337/// <see cref="ITextRange.IsEmpty"/> 339bool ITextRange.IsEmpty 350/// <see cref="ITextRange.TextSegments"/> 352List<TextSegment> ITextRange.TextSegments 369/// <see cref="ITextRange.HasConcreteTextContainer"/> 371bool ITextRange.HasConcreteTextContainer 382/// <see cref="ITextRange.Text"/> 384string ITextRange.Text 402/// <see cref="ITextRange.Xml"/> 404string ITextRange.Xml 417/// <see cref="ITextRange.ChangeBlockLevel"/> 419int ITextRange.ChangeBlockLevel 436/// <see cref="ITextRange.IsTableCellRange"/> 438bool ITextRange.IsTableCellRange 455/// <see cref="ITextRange.Changed"/> 457event EventHandler ITextRange.Changed 471/// <see cref="ITextRange.FireChanged"/> 473void ITextRange.FireChanged() 489/// <see cref="ITextRange._IsTableCellRange"/> 491bool ITextRange._IsTableCellRange 505/// <see cref="ITextRange._TextSegments"/> 507List<TextSegment> ITextRange._TextSegments 521/// <see cref="ITextRange._ChangeBlockLevel"/> 523int ITextRange._ChangeBlockLevel 537/// <see cref="ITextRange._ChangeBlockUndoRecord"/> 539ChangeBlockUndoRecord ITextRange._ChangeBlockUndoRecord 554/// <see cref="ITextRange._IsChanged"/> 556bool ITextRange._IsChanged 571/// <see cref="ITextRange._ContentGeneration"/> 573uint ITextRange._ContentGeneration 645return ((ITextRange)this).Contains(textPointer); 676((ITextRange)this).Select(position1, position2); 691((ITextRange)this).SelectWord(textPointer); 702((ITextRange)this).SelectParagraph(position); 857return ((ITextRange)this).GetPropertyValue(formattingProperty); 870return ((ITextRange)this).GetUIElementSelected(); 891return ((ITextRange)this).CanSave(dataFormat); 935((ITextRange)this).Save(stream, dataFormat); 969((ITextRange)this).Save(stream, dataFormat, preserveTextElements); 1258return (TextPointer)((ITextRange)this).Start; 1272return (TextPointer)((ITextRange)this).End; 1283return ((ITextRange)this).IsEmpty; 1297return ((ITextRange)this).HasConcreteTextContainer; 1337return ((ITextRange)this).Text; 1342((ITextRange)this).Text = value; 1353return ((ITextRange)this).Xml; 1389return ((ITextRange)this).IsTableCellRange; 1463((ITextRange)this).BeginChange(); 1477((ITextRange)this).EndChange(); 1515return ((ITextRange)this).DeclareChangeBlock(); 1526return ((ITextRange)this).DeclareChangeBlock(disableScroll); 1841internal ChangeBlock(ITextRange range, bool disableScroll) 1854private 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) 1783private static bool IsAtNormalizedPosition(ITextRange thisRange, ITextPointer position, LogicalDirection direction) 1799private static ITextPointer GetNormalizedPosition(ITextRange thisRange, ITextPointer position, LogicalDirection direction) 1909private static void NormalizeRange(ITextRange thisRange) 1981private static void SelectPrivate(ITextRange thisRange, ITextPointer position1, ITextPointer position2, bool includeCellAtMovingPosition, bool markRangeChanged) 2079private 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 220void ITextRange.NotifyChanged(bool disableScroll, bool skipEvents) 271string ITextRange.Text 288((ITextSelection)this).SetCaretToPosition(((ITextRange)this).End, LogicalDirection.Forward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false); 292SetActivePositions(((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); 1946ITextRange 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)