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