3 instantiations of TextAnchor
PresentationFramework (3)
src\Framework\MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (1)
319TextAnchor resolvedAnchor = new TextAnchor();
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (1)
228TextAnchor anchor = new TextAnchor();
src\Framework\System\Windows\Annotations\AnnotationHelper.cs (1)
998TextAnchor copy = new TextAnchor(textAnchor);
66 references to TextAnchor
PresentationFramework (66)
src\Framework\MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (6)
319TextAnchor resolvedAnchor = new TextAnchor(); 464TextAnchor anchor = selection as TextAnchor; 489private TextAnchor CheckAnchor(object selection) 494TextAnchor anchor = selection as TextAnchor;
src\Framework\MS\Internal\Annotations\Anchoring\LocatorManager.cs (1)
89RegisterSelectionProcessor(textProcessor, typeof(TextAnchor));
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (9)
81TextAnchor firstAnchor = anchor1 as TextAnchor; 82TextAnchor secondAnchor = anchor2 as TextAnchor; 102newAnchor = TextAnchor.ExclusiveUnion(firstAnchor, secondAnchor); 242TextAnchor anchor = selection as TextAnchor; 388TextAnchor textAnchor = selection as TextAnchor;
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (2)
228TextAnchor anchor = new TextAnchor(); 292anchor = TextAnchor.TrimToIntersectionWith(anchor, textView.TextSegments);
src\Framework\MS\Internal\Annotations\Component\HighlightComponent.cs (12)
245TextAnchor textAnchor = attachedAnnotation.AttachedAnchor as TextAnchor; 348TextAnchor textAnchor = _attachedAnnotation.AttachedAnchor as TextAnchor; 432TextAnchor IHighlightRange.Range 480TextAnchor fullAnchor = _attachedAnnotation.FullyAttachedAnchor as TextAnchor; 543TextAnchor textAnchor = attachedAnnotation.AttachedAnchor as TextAnchor; 606TextAnchor textAnchor = _attachedAnnotation.AttachedAnchor as TextAnchor; 683private TextAnchor _range; //the entire range for this highlight
src\Framework\MS\Internal\Annotations\Component\IHighlightRange.cs (1)
85TextAnchor Range
src\Framework\MS\Internal\Annotations\Component\MArkedHighlightComponent.cs (7)
493TextAnchor anchor = _attachedAnnotation.AttachedAnchor as TextAnchor; 679TextAnchor anchor = ((IHighlightRange)HighlightAnchor).Range; 1132TextAnchor firstAnchor = ((IAttachedAnnotation)first.AttachedAnnotations[0]).FullyAttachedAnchor as TextAnchor; 1133TextAnchor secondAnchor = ((IAttachedAnnotation)second.AttachedAnnotations[0]).FullyAttachedAnchor as TextAnchor;
src\Framework\MS\Internal\Annotations\TextAnchor.cs (10)
53internal TextAnchor(TextAnchor anchor) 174TextAnchor other = obj as TextAnchor; 264internal static TextAnchor ExclusiveUnion(TextAnchor anchor, TextAnchor otherAnchor) 288internal static TextAnchor TrimToRelativeComplement(TextAnchor anchor, ICollection<TextSegment> textSegments) 390internal static TextAnchor TrimToIntersectionWith(TextAnchor anchor, ICollection<TextSegment> textSegments)
src\Framework\System\Windows\Annotations\AnnotationHelper.cs (11)
225TextSelectionProcessor anchorProcessor = service.LocatorManager.GetSelectionProcessor(typeof(TextAnchor)) as TextSelectionProcessor; 658TextAnchor ta = attachedAnnotations[i].AttachedAnchor as TextAnchor; 703TextSelectionProcessor anchorProcessor = service.LocatorManager.GetSelectionProcessor(typeof(TextAnchor)) as TextSelectionProcessor; 847TextAnchor anchor = attachedAnnot.AttachedAnchor as TextAnchor; 870private static bool CheckCaret(ITextSelection selection, TextAnchor anchor, XmlQualifiedName type) 996TextAnchor textAnchor = attachedAnnotation.FullyAttachedAnchor as TextAnchor; 998TextAnchor copy = new TextAnchor(textAnchor); 1001copy = TextAnchor.TrimToRelativeComplement(copy, textRange.TextSegments);
src\Framework\System\Windows\Annotations\AnnotationService.cs (5)
223_locatorManager.RegisterSelectionProcessor(new FixedTextSelectionProcessor(), typeof(TextAnchor)); 228_locatorManager.RegisterSelectionProcessor(new TextSelectionProcessor(), typeof(TextAnchor)); 889TextAnchor newAnchor = secondAttachedAnnotation.AttachedAnchor as TextAnchor; 1616flowAnchorProcessor = this.LocatorManager.GetSelectionProcessor(typeof(TextAnchor)) as TextSelectionProcessor;
src\Framework\System\Windows\Controls\Primitives\DocumentViewerBase.cs (2)
1404service.LocatorManager.RegisterSelectionProcessor(new FixedTextSelectionProcessor(), typeof(TextAnchor)); 1417service.LocatorManager.RegisterSelectionProcessor(new TextSelectionProcessor(), typeof(TextAnchor));