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)
976
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)
60
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
;
656
TextAnchor
anchor = ((IHighlightRange)HighlightAnchor).Range;
1107
TextAnchor
firstAnchor = ((IAttachedAnnotation)first.AttachedAnnotations[0]).FullyAttachedAnchor as
TextAnchor
;
1108
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)
205
TextSelectionProcessor anchorProcessor = service.LocatorManager.GetSelectionProcessor(typeof(
TextAnchor
)) as TextSelectionProcessor;
637
TextAnchor
ta = attachedAnnotations[i].AttachedAnchor as
TextAnchor
;
682
TextSelectionProcessor anchorProcessor = service.LocatorManager.GetSelectionProcessor(typeof(
TextAnchor
)) as TextSelectionProcessor;
826
TextAnchor
anchor = attachedAnnot.AttachedAnchor as
TextAnchor
;
849
private static bool CheckCaret(ITextSelection selection,
TextAnchor
anchor, XmlQualifiedName type)
974
TextAnchor
textAnchor = attachedAnnotation.FullyAttachedAnchor as
TextAnchor
;
976
TextAnchor
copy = new TextAnchor(textAnchor);
979
copy =
TextAnchor
.TrimToRelativeComplement(copy, textRange.TextSegments);
System\Windows\Annotations\AnnotationService.cs (5)
194
_locatorManager.RegisterSelectionProcessor(new FixedTextSelectionProcessor(), typeof(
TextAnchor
));
199
_locatorManager.RegisterSelectionProcessor(new TextSelectionProcessor(), typeof(
TextAnchor
));
839
TextAnchor
newAnchor = secondAttachedAnnotation.AttachedAnchor as
TextAnchor
;
1559
flowAnchorProcessor = this.LocatorManager.GetSelectionProcessor(typeof(
TextAnchor
)) as TextSelectionProcessor;
System\Windows\Controls\Primitives\DocumentViewerBase.cs (2)
1362
service.LocatorManager.RegisterSelectionProcessor(new FixedTextSelectionProcessor(), typeof(
TextAnchor
));
1375
service.LocatorManager.RegisterSelectionProcessor(new TextSelectionProcessor(), typeof(
TextAnchor
));