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