System\Windows\Annotations\AnnotationHelper.cs (5)
674ITextRange textRange = new TextRange(start, end);
878private static Annotation CreateAnnotationForSelection(AnnotationService service, ITextRange textSelection, XmlQualifiedName annotationType, string author)
943ITextRange anchor = new TextRange(selection.Start, selection.End);
962private static Annotation ProcessHighlights(AnnotationService service, ITextRange textRange, string author, Nullable<Color> color, bool create)
1014private static Annotation CreateHighlight(AnnotationService service, ITextRange textRange, string author, Nullable<Color> color)
System\Windows\Documents\TextRange.cs (58)
123bool ITextRange.Contains(ITextPointer position)
133void ITextRange.Select(ITextPointer position1, ITextPointer position2)
143void ITextRange.SelectWord(ITextPointer position)
153void ITextRange.SelectParagraph(ITextPointer position)
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)
220void ITextRange.BeginChange()
230void ITextRange.BeginChangeNoUndo()
240void ITextRange.EndChange()
250void ITextRange.EndChange(bool disableScroll, bool skipEvents)
260IDisposable ITextRange.DeclareChangeBlock()
268IDisposable ITextRange.DeclareChangeBlock(bool disableScroll)
276void ITextRange.NotifyChanged(bool disableScroll, bool skipEvents)
295bool ITextRange.IgnoreTextUnitBoundaries
312ITextPointer ITextRange.Start
325ITextPointer ITextRange.End
338bool ITextRange.IsEmpty
351List<TextSegment> ITextRange.TextSegments
370bool ITextRange.HasConcreteTextContainer
383string ITextRange.Text
403string ITextRange.Xml
418int ITextRange.ChangeBlockLevel
437bool ITextRange.IsTableCellRange
456event EventHandler ITextRange.Changed
472void ITextRange.FireChanged()
490bool ITextRange._IsTableCellRange
506List<TextSegment> ITextRange._TextSegments
522int ITextRange._ChangeBlockLevel
538ChangeBlockUndoRecord ITextRange._ChangeBlockUndoRecord
555bool ITextRange._IsChanged
572uint ITextRange._ContentGeneration
644return ((ITextRange)this).Contains(textPointer);
675((ITextRange)this).Select(position1, position2);
690((ITextRange)this).SelectWord(textPointer);
701((ITextRange)this).SelectParagraph(position);
856return ((ITextRange)this).GetPropertyValue(formattingProperty);
869return ((ITextRange)this).GetUIElementSelected();
890return ((ITextRange)this).CanSave(dataFormat);
934((ITextRange)this).Save(stream, dataFormat);
968((ITextRange)this).Save(stream, dataFormat, preserveTextElements);
1257return (TextPointer)((ITextRange)this).Start;
1271return (TextPointer)((ITextRange)this).End;
1282return ((ITextRange)this).IsEmpty;
1296return ((ITextRange)this).HasConcreteTextContainer;
1336return ((ITextRange)this).Text;
1341((ITextRange)this).Text = value;
1352return ((ITextRange)this).Xml;
1388return ((ITextRange)this).IsTableCellRange;
1462((ITextRange)this).BeginChange();
1476((ITextRange)this).EndChange();
1514return ((ITextRange)this).DeclareChangeBlock();
1525return ((ITextRange)this).DeclareChangeBlock(disableScroll);
1840internal ChangeBlock(ITextRange range, bool disableScroll)
1853private readonly ITextRange _range;
System\Windows\Documents\TextRangeBase.cs (38)
57internal static bool Contains(ITextRange thisRange, ITextPointer textPointer)
112internal static void Select(ITextRange thisRange, ITextPointer position1, ITextPointer position2)
151internal static void Select(ITextRange thisRange, ITextPointer position1, ITextPointer position2, bool includeCellAtMovingPosition)
183internal static void SelectWord(ITextRange thisRange, ITextPointer position)
201internal static TextSegment GetAutoWord(ITextRange thisRange)
233internal static void SelectParagraph(ITextRange thisRange, ITextPointer position)
251internal static void ApplyInitialTypingHeuristics(ITextRange thisRange)
278internal static void ApplyFinalTypingHeuristics(ITextRange thisRange, bool overType)
312internal static void ApplyTypingHeuristics(ITextRange thisRange, bool overType)
372internal static object GetPropertyValue(ITextRange thisRange, DependencyProperty formattingProperty)
386private static object GetCharacterPropertyValue(ITextRange thisRange, DependencyProperty formattingProperty)
457private static object GetParagraphPropertyValue(ITextRange thisRange, DependencyProperty formattingProperty)
508internal static bool IsParagraphBoundaryCrossed(ITextRange thisRange)
541internal static void BeginChange(ITextRange thisRange)
549internal static void BeginChangeNoUndo(ITextRange thisRange)
557internal static void EndChange(ITextRange thisRange)
565internal static void EndChange(ITextRange thisRange, bool disableScroll, bool skipEvents)
632internal static void NotifyChanged(ITextRange thisRange, bool disableScroll)
1186internal static ITextPointer GetStart(ITextRange thisRange)
1194internal static ITextPointer GetEnd(ITextRange thisRange)
1202internal static bool GetIsEmpty(ITextRange thisRange)
1219internal static List<TextSegment> GetTextSegments(ITextRange thisRange)
1236internal static string GetText(ITextRange thisRange)
1280internal static void SetText(ITextRange thisRange, string textData)
1455internal static string GetXml(ITextRange thisRange)
1468internal static bool CanSave(ITextRange thisRange, string dataFormat)
1481internal static bool CanLoad(ITextRange thisRange, string dataFormat)
1494internal static void Save(ITextRange thisRange, Stream stream, string dataFormat, bool preserveTextElements)
1602internal static int GetChangeBlockLevel(ITextRange thisRange)
1613internal static UIElement GetUIElementSelected(ITextRange range)
1645internal static bool GetIsTableCellRange(ITextRange thisRange)
1664private static void BeginChangeWorker(ITextRange thisRange, string description)
1698private static void CreateNormalizedTextSegment(ITextRange thisRange, ITextPointer start, ITextPointer end)
1782private static bool IsAtNormalizedPosition(ITextRange thisRange, ITextPointer position, LogicalDirection direction)
1798private static ITextPointer GetNormalizedPosition(ITextRange thisRange, ITextPointer position, LogicalDirection direction)
1908private static void NormalizeRange(ITextRange thisRange)
1980private static void SelectPrivate(ITextRange thisRange, ITextPointer position1, ITextPointer position2, bool includeCellAtMovingPosition, bool markRangeChanged)
2078private static void MarkRangeChanged(ITextRange thisRange)
System\Windows\Documents\TextRangeSerialization.cs (11)
31internal static void WriteXaml(XmlWriter xmlWriter, ITextRange range, bool useFlowDocumentAsRoot, WpfPayload wpfPayload)
56internal static void WriteXaml(XmlWriter xmlWriter, ITextRange range, bool useFlowDocumentAsRoot, WpfPayload wpfPayload, bool preserveTextElements)
333private static void WriteXamlTableCellRange(XmlWriter xmlWriter, ITextRange range, XamlTypeMapper xamlTypeMapper, ref int elementLevel, WpfPayload wpfPayload, bool preserveTextElements)
361ITextRange textRange = new TextRange(textSegment.Start, textSegment.End);
414private static int WriteOpeningTags(ITextRange range, ITextPointer thisElement, ITextPointer scope, XmlWriter xmlWriter, XamlTypeMapper xamlTypeMapper, bool reduceElement, out bool ignoreWriteHyperlinkEnd, ref List<int> ignoreList, bool preserveTextElements)
534private static void WriteStartXamlElement(ITextRange range, ITextPointer textReader, XmlWriter xmlWriter, XamlTypeMapper xamlTypeMapper, bool reduceElement, bool preserveTextElements)
599private static void WriteTableColumnsInformation(ITextRange range, Table table, XmlWriter xmlWriter, XamlTypeMapper xamlTypeMapper)
643private static void WriteRootFlowDocument(ITextRange range, ITextPointer context, XmlWriter xmlWriter, XamlTypeMapper xamlTypeMapper, bool lastParagraphMustBeMerged, bool useFlowDocumentAsRoot)
1665private static ITextPointer FindSerializationCommonAncestor(ITextRange range)
1718private static bool IsAcceptableAncestor(ITextPointer commonAncestor, ITextRange range)
1914private static ITextPointer GetHyperlinkStart(ITextRange range)