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