3 instantiations of TextAnchor
PresentationFramework (3)
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (1)
297TextAnchor resolvedAnchor = new TextAnchor();
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (1)
204TextAnchor anchor = new TextAnchor();
System\Windows\Annotations\AnnotationHelper.cs (1)
975TextAnchor copy = new TextAnchor(textAnchor);
66 references to TextAnchor
PresentationFramework (66)
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (6)
297TextAnchor resolvedAnchor = new TextAnchor(); 441TextAnchor anchor = selection as TextAnchor; 466private TextAnchor CheckAnchor(object selection) 470TextAnchor anchor = selection as TextAnchor;
MS\Internal\Annotations\Anchoring\LocatorManager.cs (1)
59RegisterSelectionProcessor(textProcessor, typeof(TextAnchor));
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (9)
68TextAnchor firstAnchor = anchor1 as TextAnchor; 69TextAnchor secondAnchor = anchor2 as TextAnchor; 89newAnchor = TextAnchor.ExclusiveUnion(firstAnchor, secondAnchor); 225TextAnchor anchor = selection as TextAnchor; 368TextAnchor textAnchor = selection as TextAnchor;
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (2)
204TextAnchor anchor = new TextAnchor(); 268anchor = TextAnchor.TrimToIntersectionWith(anchor, textView.TextSegments);
MS\Internal\Annotations\Component\HighlightComponent.cs (12)
226TextAnchor textAnchor = attachedAnnotation.AttachedAnchor as TextAnchor; 323TextAnchor textAnchor = _attachedAnnotation.AttachedAnchor as TextAnchor; 407TextAnchor IHighlightRange.Range 452TextAnchor fullAnchor = _attachedAnnotation.FullyAttachedAnchor as TextAnchor; 509TextAnchor textAnchor = attachedAnnotation.AttachedAnchor as TextAnchor; 571TextAnchor textAnchor = _attachedAnnotation.AttachedAnchor as TextAnchor; 646private TextAnchor _range; //the entire range for this highlight
MS\Internal\Annotations\Component\IHighlightRange.cs (1)
68TextAnchor Range
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (7)
471TextAnchor anchor = _attachedAnnotation.AttachedAnchor as TextAnchor; 655TextAnchor anchor = ((IHighlightRange)HighlightAnchor).Range; 1106TextAnchor firstAnchor = ((IAttachedAnnotation)first.AttachedAnnotations[0]).FullyAttachedAnchor as TextAnchor; 1107TextAnchor secondAnchor = ((IAttachedAnnotation)second.AttachedAnnotations[0]).FullyAttachedAnchor as TextAnchor;
MS\Internal\Annotations\TextAnchor.cs (10)
46internal TextAnchor(TextAnchor anchor) 164TextAnchor other = obj as TextAnchor; 253internal static TextAnchor ExclusiveUnion(TextAnchor anchor, TextAnchor otherAnchor) 277internal static TextAnchor TrimToRelativeComplement(TextAnchor anchor, ICollection<TextSegment> textSegments) 379internal static TextAnchor TrimToIntersectionWith(TextAnchor anchor, ICollection<TextSegment> textSegments)
System\Windows\Annotations\AnnotationHelper.cs (11)
204TextSelectionProcessor anchorProcessor = service.LocatorManager.GetSelectionProcessor(typeof(TextAnchor)) as TextSelectionProcessor; 636TextAnchor ta = attachedAnnotations[i].AttachedAnchor as TextAnchor; 681TextSelectionProcessor anchorProcessor = service.LocatorManager.GetSelectionProcessor(typeof(TextAnchor)) as TextSelectionProcessor; 825TextAnchor anchor = attachedAnnot.AttachedAnchor as TextAnchor; 848private static bool CheckCaret(ITextSelection selection, TextAnchor anchor, XmlQualifiedName type) 973TextAnchor textAnchor = attachedAnnotation.FullyAttachedAnchor as TextAnchor; 975TextAnchor copy = new TextAnchor(textAnchor); 978copy = TextAnchor.TrimToRelativeComplement(copy, textRange.TextSegments);
System\Windows\Annotations\AnnotationService.cs (5)
193_locatorManager.RegisterSelectionProcessor(new FixedTextSelectionProcessor(), typeof(TextAnchor)); 198_locatorManager.RegisterSelectionProcessor(new TextSelectionProcessor(), typeof(TextAnchor)); 838TextAnchor newAnchor = secondAttachedAnnotation.AttachedAnchor as TextAnchor; 1558flowAnchorProcessor = this.LocatorManager.GetSelectionProcessor(typeof(TextAnchor)) as TextSelectionProcessor;
System\Windows\Controls\Primitives\DocumentViewerBase.cs (2)
1361service.LocatorManager.RegisterSelectionProcessor(new FixedTextSelectionProcessor(), typeof(TextAnchor)); 1374service.LocatorManager.RegisterSelectionProcessor(new TextSelectionProcessor(), typeof(TextAnchor));