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