3 instantiations of TextAnchor
PresentationFramework (3)
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (1)
298TextAnchor resolvedAnchor = new TextAnchor();
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (1)
205TextAnchor anchor = new TextAnchor();
System\Windows\Annotations\AnnotationHelper.cs (1)
978TextAnchor copy = new TextAnchor(textAnchor);
66 references to TextAnchor
PresentationFramework (66)
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (6)
298TextAnchor resolvedAnchor = new TextAnchor(); 442TextAnchor anchor = selection as TextAnchor; 467private TextAnchor CheckAnchor(object selection) 471TextAnchor anchor = selection as TextAnchor;
MS\Internal\Annotations\Anchoring\LocatorManager.cs (1)
71RegisterSelectionProcessor(textProcessor, typeof(TextAnchor));
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (9)
69TextAnchor firstAnchor = anchor1 as TextAnchor; 70TextAnchor secondAnchor = anchor2 as TextAnchor; 90newAnchor = TextAnchor.ExclusiveUnion(firstAnchor, secondAnchor); 226TextAnchor anchor = selection as TextAnchor; 369TextAnchor textAnchor = selection as TextAnchor;
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (2)
205TextAnchor anchor = new TextAnchor(); 269anchor = TextAnchor.TrimToIntersectionWith(anchor, textView.TextSegments);
MS\Internal\Annotations\Component\HighlightComponent.cs (12)
227TextAnchor textAnchor = attachedAnnotation.AttachedAnchor as TextAnchor; 324TextAnchor textAnchor = _attachedAnnotation.AttachedAnchor as TextAnchor; 408TextAnchor IHighlightRange.Range 453TextAnchor fullAnchor = _attachedAnnotation.FullyAttachedAnchor as TextAnchor; 510TextAnchor textAnchor = attachedAnnotation.AttachedAnchor as TextAnchor; 572TextAnchor textAnchor = _attachedAnnotation.AttachedAnchor as TextAnchor; 647private TextAnchor _range; //the entire range for this highlight
MS\Internal\Annotations\Component\IHighlightRange.cs (1)
69TextAnchor Range
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (7)
472TextAnchor anchor = _attachedAnnotation.AttachedAnchor as TextAnchor; 652TextAnchor anchor = ((IHighlightRange)HighlightAnchor).Range; 1103TextAnchor firstAnchor = ((IAttachedAnnotation)first.AttachedAnnotations[0]).FullyAttachedAnchor as TextAnchor; 1104TextAnchor secondAnchor = ((IAttachedAnnotation)second.AttachedAnnotations[0]).FullyAttachedAnchor as TextAnchor;
MS\Internal\Annotations\TextAnchor.cs (10)
47internal TextAnchor(TextAnchor anchor) 165TextAnchor other = obj as TextAnchor; 254internal static TextAnchor ExclusiveUnion(TextAnchor anchor, TextAnchor otherAnchor) 278internal static TextAnchor TrimToRelativeComplement(TextAnchor anchor, ICollection<TextSegment> textSegments) 380internal static TextAnchor TrimToIntersectionWith(TextAnchor anchor, ICollection<TextSegment> textSegments)
System\Windows\Annotations\AnnotationHelper.cs (11)
207TextSelectionProcessor anchorProcessor = service.LocatorManager.GetSelectionProcessor(typeof(TextAnchor)) as TextSelectionProcessor; 639TextAnchor ta = attachedAnnotations[i].AttachedAnchor as TextAnchor; 684TextSelectionProcessor anchorProcessor = service.LocatorManager.GetSelectionProcessor(typeof(TextAnchor)) as TextSelectionProcessor; 828TextAnchor anchor = attachedAnnot.AttachedAnchor as TextAnchor; 851private static bool CheckCaret(ITextSelection selection, TextAnchor anchor, XmlQualifiedName type) 976TextAnchor textAnchor = attachedAnnotation.FullyAttachedAnchor as TextAnchor; 978TextAnchor copy = new TextAnchor(textAnchor); 981copy = TextAnchor.TrimToRelativeComplement(copy, textRange.TextSegments);
System\Windows\Annotations\AnnotationService.cs (5)
195_locatorManager.RegisterSelectionProcessor(new FixedTextSelectionProcessor(), typeof(TextAnchor)); 200_locatorManager.RegisterSelectionProcessor(new TextSelectionProcessor(), typeof(TextAnchor)); 844TextAnchor newAnchor = secondAttachedAnnotation.AttachedAnchor as TextAnchor; 1564flowAnchorProcessor = this.LocatorManager.GetSelectionProcessor(typeof(TextAnchor)) as TextSelectionProcessor;
System\Windows\Controls\Primitives\DocumentViewerBase.cs (2)
1387service.LocatorManager.RegisterSelectionProcessor(new FixedTextSelectionProcessor(), typeof(TextAnchor)); 1400service.LocatorManager.RegisterSelectionProcessor(new TextSelectionProcessor(), typeof(TextAnchor));