126 references to TextRangeBase
PresentationFramework (126)
MS\Internal\Annotations\TextAnchor.cs (1)
547textBuffer.Append(TextRangeBase.GetTextInternal(_segments[i].Start, _segments[i].End));
System\Windows\Controls\ComboBox.cs (1)
1611strValue += TextRangeBase.GetTextInternal(textElement.ContentStart, textElement.ContentEnd);
System\Windows\Controls\DeferredRunTextReference.cs (1)
43return TextRangeBase.GetTextInternal(_run.ContentStart, _run.ContentEnd);
System\Windows\Controls\DeferredTextReference.cs (1)
43string s = TextRangeBase.GetTextInternal(_textContainer.Start, _textContainer.End);
System\Windows\Controls\TextBlock.cs (1)
2000return TextRangeBase.GetTextInternal(_complexContent.TextContainer.Start, _complexContent.TextContainer.End);
System\Windows\Controls\TextBox.cs (1)
403text = TextRangeBase.GetTextInternal(startOfLine, endOfLine);
System\Windows\Controls\TextRangeAdaptor.cs (6)
639TextRangeBase.SelectParagraph(textRange, _start); 648TextRangeBase.SelectParagraph(textRange, _end); 851TextRangeBase.SelectParagraph(textRange, position); 862TextRangeBase.SelectParagraph(textRange, nextParagraphStart); 883TextRangeBase.SelectParagraph(textRange, previousParagraphEnd); 1859string text = TextRangeBase.GetTextInternal(_start, _end);
System\Windows\Documents\Hyperlink.cs (1)
784return TextRangeBase.GetTextInternal(this.ContentStart, this.ContentEnd);
System\Windows\Documents\RubberbandSelector.cs (1)
312text = $"{text}{TextRangeBase.GetTextInternal(range.first, range.second)}\r\n"; //CRLF
System\Windows\Documents\Speller.cs (1)
237string error = TextRangeBase.GetTextInternal(errorStart, errorEnd, ref charArray);
System\Windows\Documents\SpellerError.cs (1)
73_speller.IgnoreAll(TextRangeBase.GetTextInternal(_start, _end));
System\windows\Documents\TextEditorCharacters.cs (1)
136TextSegment autoWordRange = TextRangeBase.GetAutoWord(This.Selection);
System\windows\Documents\TextEditorDragDrop.cs (1)
471string wordText = TextRangeBase.GetTextInternal(wordSegment.Start, wordSegment.End);
System\Windows\Documents\TextRange.cs (50)
91TextRangeBase.Select(this, position1, position2); 127return TextRangeBase.Contains(this, position); 137TextRangeBase.Select(this, position1, position2); 147TextRangeBase.SelectWord(this, position); 157TextRangeBase.SelectParagraph(this, position); 167TextRangeBase.ApplyTypingHeuristics(this, overType); 174return TextRangeBase.GetPropertyValue(this, formattingProperty); 181return TextRangeBase.GetUIElementSelected(this); 194return TextRangeBase.CanSave(this, dataFormat); 201TextRangeBase.Save(this, stream, dataFormat, false); 208TextRangeBase.Save(this, stream, dataFormat, preserveTextElements); 224TextRangeBase.BeginChange(this); 234TextRangeBase.BeginChangeNoUndo(this); 244TextRangeBase.EndChange(this, false /* disableScroll */, false /* skipEvents */); 254TextRangeBase.EndChange(this, disableScroll, skipEvents); 280TextRangeBase.NotifyChanged(this, disableScroll); 318return TextRangeBase.GetStart(this); 331return TextRangeBase.GetEnd(this); 344return TextRangeBase.GetIsEmpty(this); 357return TextRangeBase.GetTextSegments(this); 389return TextRangeBase.GetText(this); 396TextRangeBase.SetText(this, value); 409return TextRangeBase.GetXml(this); 424return TextRangeBase.GetChangeBlockLevel(this); 443return TextRangeBase.GetIsTableCellRange(this); 906return TextRangeBase.CanLoad(this, dataFormat); 1085TextRangeBase.Load(this, stream, dataFormat); 1359TextRangeBase.BeginChange(this); 1373TextRangeBase.EndChange(this); 1567TextRangeBase.BeginChange(this); 1609TextRangeBase.EndChange(this); 1616TextRangeBase.BeginChange(this); 1631if (applyToParagraphs || this.IsEmpty || TextRangeBase.IsParagraphBoundaryCrossed(this)) 1665TextRangeBase.EndChange(this); 1672TextRangeBase.BeginChange(this); 1680TextRangeBase.EndChange(this); 1693TextRangeBase.BeginChange(this); 1700TextRangeBase.EndChange(this); 1707TextRangeBase.BeginChange(this); 1714TextRangeBase.EndChange(this); 1721TextRangeBase.BeginChange(this); 1728TextRangeBase.EndChange(this); 1735TextRangeBase.BeginChange(this); 1742TextRangeBase.EndChange(this); 1749TextRangeBase.BeginChange(this); 1756TextRangeBase.EndChange(this); 1763TextRangeBase.BeginChange(this); 1770TextRangeBase.EndChange(this); 1777TextRangeBase.BeginChange(this); 1784TextRangeBase.EndChange(this);
System\Windows\Documents\TextRangeBase.cs (15)
157TextRangeBase.SelectPrivate(thisRange, position1, position2, includeCellAtMovingPosition, /*markRangeChanged*/false); 164TextRangeBase.BeginChange(thisRange); 167TextRangeBase.SelectPrivate(thisRange, position1, position2, includeCellAtMovingPosition, /*markRangeChanged*/true); 171TextRangeBase.EndChange(thisRange); 195TextRangeBase.Select(thisRange, wordRange.Start, wordRange.End); 212string autoWord = TextRangeBase.GetTextInternal(autoWordRange.Start, autoWordRange.End).TrimEnd(' '); 214string textFromWordStart = TextRangeBase.GetTextInternal(autoWordRange.Start, thisRange.Start); 242TextRangeBase.Select(thisRange, start, end); 1257return TextRangeBase.GetTextInternal(start, thisRange.End); 1271text += TextRangeBase.GetTextInternal(textSegment.Start, textSegment.End); 1288TextRangeBase.BeginChange(thisRange); 1446TextRangeBase.SelectPrivate(thisRange, newStart, newEnd, /*includeCellAtMovingPosition:*/false, /*markRangeChanged*/true); 1451TextRangeBase.EndChange(thisRange); 2031TextRangeBase.CreateNormalizedTextSegment(thisRange, newStart, newEnd); 2068TextRangeBase.MarkRangeChanged(thisRange);
System\Windows\Documents\TextRangeSerialization.cs (1)
1282string fragmentText = TextRangeBase.GetTextInternal(fragment.ElementStart, fragment.ElementEnd);
System\windows\Documents\TextSelection.cs (39)
86TextRangeBase.BeginChange(this); 89TextRangeBase.Select(this, anchorPosition, movingPosition); 94TextRangeBase.EndChange(this); 103TextRangeBase.BeginChange(this); 106TextRangeBase.SelectWord(this, position); 113TextRangeBase.EndChange(this); 122TextRangeBase.BeginChange(this); 125TextRangeBase.SelectParagraph(this, position); 133TextRangeBase.EndChange(this); 142TextRangeBase.BeginChange(this); 145TextRangeBase.ApplyInitialTypingHeuristics(this); 154TextRangeBase.ApplyFinalTypingHeuristics(this, overType); 158TextRangeBase.EndChange(this); 177propertyValue = TextRangeBase.GetPropertyValue(this, formattingProperty); 228TextRangeBase.NotifyChanged(this, disableScroll); 274return TextRangeBase.GetText(this); 279TextRangeBase.BeginChange(this); 282TextRangeBase.SetText(this, value); 295TextRangeBase.EndChange(this); 515TextRangeBase.BeginChange(this); 518TextRangeBase.Select(this, caretPosition, caretPosition); 534TextRangeBase.EndChange(this); 547TextRangeBase.BeginChange(this); 556TextRangeBase.Select(thisSelection, anchorPosition, position); 563TextRangeBase.EndChange(this); 572TextRangeBase.BeginChange(this); 619TextRangeBase.Select(this, anchorPosition, newMovingPosition); 632TextRangeBase.EndChange(this); 835TextRangeBase.Select(this, startPosition, movingPosition, /*includeCellAtMovingPosition:*/true); 1067TextRangeBase.Select(this, _anchorPosition, movingPosition); 1237TextRangeBase.BeginChange(this); 1246TextRangeBase.EndChange(this); 1266TextSegment autoWordRange = TextRangeBase.GetAutoWord(this); 1301TextRangeBase.BeginChange(this); 1310TextRangeBase.EndChange(this); 1324TextRangeBase.BeginChange(this); 1333TextRangeBase.EndChange(this); 1340TextRangeBase.BeginChange(this); 1349TextRangeBase.EndChange(this);
System\Windows\Documents\TextStore.cs (3)
1240_lastCompositionText = TextRangeBase.GetTextInternal(start, end); 1341string compositionText = TextRangeBase.GetTextInternal(oldStart, oldEnd); 1405this.CompositionEventList.Add(new CompositionEventRecord(CompositionStage.EndComposition, start.Offset, end.Offset, TextRangeBase.GetTextInternal(start, end)));