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