1 interface inheriting from ITextRange
PresentationFramework (1)
src\Framework\System\Windows\Documents\ITextSelection.cs (1)
28internal interface ITextSelection : ITextRange
1 implementation of ITextRange
PresentationFramework (1)
src\Framework\System\Windows\Documents\TextRange.cs (1)
27public class TextRange : ITextRange
210 references to ITextRange
PresentationFramework (210)
src\Framework\MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (2)
455ITextRange textRange = selection as ITextRange;
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (2)
378ITextRange textRange = selection as ITextRange;
src\Framework\MS\Internal\Annotations\Component\HighlightComponent.cs (1)
468internal bool IsSelected(ITextRange selection)
src\Framework\MS\Internal\Annotations\Component\MArkedHighlightComponent.cs (6)
514_selection = textContainer.TextSelection as ITextRange; 913ITextRange selection = sender as ITextRange; 983ITextRange selection = container.TextSelection as ITextRange; 1208private ITextRange _selection; // we need to listen to selection.Changed event
src\Framework\MS\Internal\Documents\DocumentGrid.cs (1)
1307ITextRange textRange = TextEditor.Selection;
src\Framework\MS\Internal\Documents\DocumentViewerHelper.cs (3)
93internal static ITextRange Find(FindToolBar findToolBar, TextEditor textEditor, ITextView textView, ITextView masterPageTextView) 98ITextRange textSelection; 102ITextRange findResult = null;
src\Framework\MS\Internal\Documents\IFlowDocumentViewer.cs (3)
57void ShowFindResult(ITextRange findResult); 322void IFlowDocumentViewer.ShowFindResult(ITextRange findResult) 677void IFlowDocumentViewer.ShowFindResult(ITextRange findResult)
src\Framework\System\Windows\Annotations\AnnotationHelper.cs (5)
696ITextRange textRange = new TextRange(start, end); 901private static Annotation CreateAnnotationForSelection(AnnotationService service, ITextRange textSelection, XmlQualifiedName annotationType, string author) 966ITextRange anchor = new TextRange(selection.Start, selection.End); 985private static Annotation ProcessHighlights(AnnotationService service, ITextRange textRange, string author, Nullable<Color> color, bool create) 1037private static Annotation CreateHighlight(AnnotationService service, ITextRange textRange, string author, Nullable<Color> color)
src\Framework\System\Windows\Controls\DocumentViewer.cs (1)
2244ITextRange findResult = Find(_findToolbar);
src\Framework\System\Windows\Controls\FlowDocumentReader.cs (1)
1578ITextRange findResult;
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
1548ITextRange findResult;
src\Framework\System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
714internal ITextRange Find(FindToolBar findToolBar)
src\Framework\System\Windows\Controls\SinglePageViewer.cs (1)
1164ITextRange findResult;
src\Framework\System\Windows\Controls\TextAdaptor.cs (1)
478ITextRange selection = _textContainer.TextSelection;
src\Framework\System\Windows\Controls\TextRangeAdaptor.cs (4)
649ITextRange textRange = new TextRange(_start, _end); 861ITextRange textRange = new TextRange(position, position); 1119ITextRange paragraphRange = new TextRange(position, position); 1795ITextRange findResult = TextFindEngine.Find(_start, _end, text, findFlags, CultureInfo.CurrentCulture);
src\Framework\System\Windows\Documents\ImmComposition.cs (4)
1240ITextRange range; 1477ITextRange range; 1551private static string GetSurroundingText(ITextRange range, out int offsetStart) 1689ITextRange range = _editor.Selection;
src\Framework\System\Windows\Documents\SpellerError.cs (1)
66ITextRange range = new TextRange(_start, _end);
src\Framework\System\windows\Documents\TextEditor.cs (3)
449internal void SetText(ITextRange range, string text, CultureInfo cultureInfo) 1193internal string _FilterText(string textData, ITextRange range) 1203internal string _FilterText(string textData, ITextRange range, bool filterMaxLength)
src\Framework\System\windows\Documents\TextEditorDragDrop.cs (1)
722private ITextRange _dragSourceTextRange;
src\Framework\System\windows\Documents\TextEditorSelection.cs (5)
145ITextRange textRange = new TextRange(lineRange.Start, lineRange.End); 483ITextRange paragraphRange = new TextRange(movingPointer, movingPointer); 534ITextRange paragraphRange = new TextRange(movingPointer, movingPointer); 1341ITextRange paragraphRange = new TextRange(movingPointer, movingPointer); 1382ITextRange paragraphRange = new TextRange(movingPointer, movingPointer);
src\Framework\System\windows\Documents\TextEditorTyping.cs (2)
947ITextRange textRange = new TextRange(This.Selection.Start, wordBoundary); 1009ITextRange textRange = new TextRange(wordBoundary, This.Selection.End);
src\Framework\System\Windows\Documents\TextFindEngine.cs (1)
92public static ITextRange Find(
src\Framework\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); 864return ((ITextRange)this).GetPropertyValue(formattingProperty); 877return ((ITextRange)this).GetUIElementSelected(); 898return ((ITextRange)this).CanSave(dataFormat); 942((ITextRange)this).Save(stream, dataFormat); 976((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;
src\Framework\System\Windows\Documents\TextRangeBase.cs (44)
63internal static bool Contains(ITextRange thisRange, ITextPointer textPointer) 121internal static void Select(ITextRange thisRange, ITextPointer position1, ITextPointer position2) 160internal static void Select(ITextRange thisRange, ITextPointer position1, ITextPointer position2, bool includeCellAtMovingPosition) 192internal static void SelectWord(ITextRange thisRange, ITextPointer position) 213internal static TextSegment GetAutoWord(ITextRange thisRange) 245internal static void SelectParagraph(ITextRange thisRange, ITextPointer position) 266internal static void ApplyInitialTypingHeuristics(ITextRange thisRange) 293internal static void ApplyFinalTypingHeuristics(ITextRange thisRange, bool overType) 325/// <see cref="System.Windows.Documents.ITextRange.ApplyTypingHeuristics"/> 327internal static void ApplyTypingHeuristics(ITextRange thisRange, bool overType) 387internal static object GetPropertyValue(ITextRange thisRange, DependencyProperty formattingProperty) 401private static object GetCharacterPropertyValue(ITextRange thisRange, DependencyProperty formattingProperty) 472private static object GetParagraphPropertyValue(ITextRange thisRange, DependencyProperty formattingProperty) 523internal static bool IsParagraphBoundaryCrossed(ITextRange thisRange) 554/// <see cref="ITextRange.BeginChange"/> 556internal static void BeginChange(ITextRange thisRange) 562/// <see cref="ITextRange.BeginChangeNoUndo"/> 564internal static void BeginChangeNoUndo(ITextRange thisRange) 570/// <see cref="ITextRange.EndChange()"/> 572internal static void EndChange(ITextRange thisRange) 578/// <see cref="ITextRange.EndChange(bool,bool)"/> 580internal static void EndChange(ITextRange thisRange, bool disableScroll, bool skipEvents) 645/// <see cref="ITextRange.NotifyChanged(bool,bool)"/> 647internal static void NotifyChanged(ITextRange thisRange, bool disableScroll) 1201internal static ITextPointer GetStart(ITextRange thisRange) 1209internal static ITextPointer GetEnd(ITextRange thisRange) 1217internal static bool GetIsEmpty(ITextRange thisRange) 1234internal static List<TextSegment> GetTextSegments(ITextRange thisRange) 1251internal static string GetText(ITextRange thisRange) 1295internal static void SetText(ITextRange thisRange, string textData) 1473internal static string GetXml(ITextRange thisRange) 1486internal static bool CanSave(ITextRange thisRange, string dataFormat) 1500internal static bool CanLoad(ITextRange thisRange, string dataFormat) 1514internal static void Save(ITextRange thisRange, Stream stream, string dataFormat, bool preserveTextElements) 1634internal static int GetChangeBlockLevel(ITextRange thisRange) 1645internal static UIElement GetUIElementSelected(ITextRange range) 1677internal static bool GetIsTableCellRange(ITextRange thisRange) 1696private static void BeginChangeWorker(ITextRange thisRange, string description) 1730private static void CreateNormalizedTextSegment(ITextRange thisRange, ITextPointer start, ITextPointer end) 1815private static bool IsAtNormalizedPosition(ITextRange thisRange, ITextPointer position, LogicalDirection direction) 1831private static ITextPointer GetNormalizedPosition(ITextRange thisRange, ITextPointer position, LogicalDirection direction) 1941private static void NormalizeRange(ITextRange thisRange) 2013private static void SelectPrivate(ITextRange thisRange, ITextPointer position1, ITextPointer position2, bool includeCellAtMovingPosition, bool markRangeChanged) 2111private static void MarkRangeChanged(ITextRange thisRange)
src\Framework\System\Windows\Documents\TextRangeEditLists.cs (1)
275((ITextRange)range).Select(insertionPosition, insertionPosition);
src\Framework\System\Windows\Documents\TextRangeEditTables.cs (2)
41internal static bool GetColumnRange(ITextRange range, Table table, out int firstColumnIndex, out int lastColumnIndex) 402internal static void IdentifyValidBoundaries(ITextRange range, out ITextPointer start, out ITextPointer end)
src\Framework\System\Windows\Documents\TextRangeSerialization.cs (11)
40internal static void WriteXaml(XmlWriter xmlWriter, ITextRange range, bool useFlowDocumentAsRoot, WpfPayload wpfPayload) 65internal static void WriteXaml(XmlWriter xmlWriter, ITextRange range, bool useFlowDocumentAsRoot, WpfPayload wpfPayload, bool preserveTextElements) 346private static void WriteXamlTableCellRange(XmlWriter xmlWriter, ITextRange range, XamlTypeMapper xamlTypeMapper, ref int elementLevel, WpfPayload wpfPayload, bool preserveTextElements) 374ITextRange textRange = new TextRange(textSegment.Start, textSegment.End); 427private static int WriteOpeningTags(ITextRange range, ITextPointer thisElement, ITextPointer scope, XmlWriter xmlWriter, XamlTypeMapper xamlTypeMapper, bool reduceElement, out bool ignoreWriteHyperlinkEnd, ref List<int> ignoreList, bool preserveTextElements) 547private static void WriteStartXamlElement(ITextRange range, ITextPointer textReader, XmlWriter xmlWriter, XamlTypeMapper xamlTypeMapper, bool reduceElement, bool preserveTextElements) 612private static void WriteTableColumnsInformation(ITextRange range, Table table, XmlWriter xmlWriter, XamlTypeMapper xamlTypeMapper) 657private static void WriteRootFlowDocument(ITextRange range, ITextPointer context, XmlWriter xmlWriter, XamlTypeMapper xamlTypeMapper, bool lastParagraphMustBeMerged, bool useFlowDocumentAsRoot) 1692private static ITextPointer FindSerializationCommonAncestor(ITextRange range) 1745private static bool IsAcceptableAncestor(ITextPointer commonAncestor, ITextRange range) 1941private static ITextPointer GetHyperlinkStart(ITextRange range)
src\Framework\System\windows\Documents\TextSelection.cs (12)
91void ITextRange.Select(ITextPointer anchorPosition, ITextPointer movingPosition) 108void ITextRange.SelectWord(ITextPointer position) 127void ITextRange.SelectParagraph(ITextPointer position) 145/// <see cref="System.Windows.Documents.ITextRange.ApplyTypingHeuristics"/> 147void ITextRange.ApplyTypingHeuristics(bool overType) 172object ITextRange.GetPropertyValue(DependencyProperty formattingProperty) 203bool ITextRange._IsChanged 232void ITextRange.NotifyChanged(bool disableScroll, bool skipEvents) 289string ITextRange.Text 306((ITextSelection)this).SetCaretToPosition(((ITextRange)this).End, LogicalDirection.Forward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false); 310SetActivePositions(((ITextRange)this).Start, ((ITextRange)this).End);
src\Framework\System\windows\Documents\TextSelectionHighlightLayer.cs (1)
312private bool IsTextRangeEmpty(ITextRange textRange)
src\Framework\System\Windows\Documents\TextStore.cs (3)
406ITextRange range = new TextRange(start, end, true /* ignoreTextUnitBoundaries */); 553ITextRange range = new TextRange(this.TextSelection.AnchorPosition, this.TextSelection.MovingPosition); 1841ITextRange range;
src\Framework\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)