3 instantiations of TextAnchor
PresentationFramework (3)
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (1)
309TextAnchor resolvedAnchor = new TextAnchor();
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (1)
215TextAnchor anchor = new TextAnchor();
System\Windows\Annotations\AnnotationHelper.cs (1)
990TextAnchor copy = new TextAnchor(textAnchor);
66 references to TextAnchor
PresentationFramework (66)
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (6)
309TextAnchor resolvedAnchor = new TextAnchor(); 453TextAnchor anchor = selection as TextAnchor; 478private TextAnchor CheckAnchor(object selection) 482TextAnchor anchor = selection as TextAnchor;
MS\Internal\Annotations\Anchoring\LocatorManager.cs (1)
82RegisterSelectionProcessor(textProcessor, typeof(TextAnchor));
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (9)
78TextAnchor firstAnchor = anchor1 as TextAnchor; 79TextAnchor secondAnchor = anchor2 as TextAnchor; 99newAnchor = TextAnchor.ExclusiveUnion(firstAnchor, secondAnchor); 235TextAnchor anchor = selection as TextAnchor; 378TextAnchor textAnchor = selection as TextAnchor;
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (2)
215TextAnchor anchor = new TextAnchor(); 279anchor = TextAnchor.TrimToIntersectionWith(anchor, textView.TextSegments);
MS\Internal\Annotations\Component\HighlightComponent.cs (12)
235TextAnchor textAnchor = attachedAnnotation.AttachedAnchor as TextAnchor; 332TextAnchor textAnchor = _attachedAnnotation.AttachedAnchor as TextAnchor; 416TextAnchor IHighlightRange.Range 461TextAnchor fullAnchor = _attachedAnnotation.FullyAttachedAnchor as TextAnchor; 518TextAnchor textAnchor = attachedAnnotation.AttachedAnchor as TextAnchor; 580TextAnchor textAnchor = _attachedAnnotation.AttachedAnchor as TextAnchor; 655private TextAnchor _range; //the entire range for this highlight
MS\Internal\Annotations\Component\IHighlightRange.cs (1)
80TextAnchor Range
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (7)
478TextAnchor anchor = _attachedAnnotation.AttachedAnchor as TextAnchor; 658TextAnchor anchor = ((IHighlightRange)HighlightAnchor).Range; 1109TextAnchor firstAnchor = ((IAttachedAnnotation)first.AttachedAnnotations[0]).FullyAttachedAnchor as TextAnchor; 1110TextAnchor secondAnchor = ((IAttachedAnnotation)second.AttachedAnnotations[0]).FullyAttachedAnchor as TextAnchor;
MS\Internal\Annotations\TextAnchor.cs (10)
50internal TextAnchor(TextAnchor anchor) 168TextAnchor other = obj as TextAnchor; 257internal static TextAnchor ExclusiveUnion(TextAnchor anchor, TextAnchor otherAnchor) 281internal static TextAnchor TrimToRelativeComplement(TextAnchor anchor, ICollection<TextSegment> textSegments) 383internal static TextAnchor TrimToIntersectionWith(TextAnchor anchor, ICollection<TextSegment> textSegments)
System\Windows\Annotations\AnnotationHelper.cs (11)
219TextSelectionProcessor anchorProcessor = service.LocatorManager.GetSelectionProcessor(typeof(TextAnchor)) as TextSelectionProcessor; 651TextAnchor ta = attachedAnnotations[i].AttachedAnchor as TextAnchor; 696TextSelectionProcessor anchorProcessor = service.LocatorManager.GetSelectionProcessor(typeof(TextAnchor)) as TextSelectionProcessor; 840TextAnchor anchor = attachedAnnot.AttachedAnchor as TextAnchor; 863private static bool CheckCaret(ITextSelection selection, TextAnchor anchor, XmlQualifiedName type) 988TextAnchor textAnchor = attachedAnnotation.FullyAttachedAnchor as TextAnchor; 990TextAnchor copy = new TextAnchor(textAnchor); 993copy = TextAnchor.TrimToRelativeComplement(copy, textRange.TextSegments);
System\Windows\Annotations\AnnotationService.cs (5)
207_locatorManager.RegisterSelectionProcessor(new FixedTextSelectionProcessor(), typeof(TextAnchor)); 212_locatorManager.RegisterSelectionProcessor(new TextSelectionProcessor(), typeof(TextAnchor)); 856TextAnchor newAnchor = secondAttachedAnnotation.AttachedAnchor as TextAnchor; 1576flowAnchorProcessor = this.LocatorManager.GetSelectionProcessor(typeof(TextAnchor)) as TextSelectionProcessor;
System\Windows\Controls\Primitives\DocumentViewerBase.cs (2)
1392service.LocatorManager.RegisterSelectionProcessor(new FixedTextSelectionProcessor(), typeof(TextAnchor)); 1405service.LocatorManager.RegisterSelectionProcessor(new TextSelectionProcessor(), typeof(TextAnchor));