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