3 instantiations of TextAnchor
PresentationFramework (3)
src\Framework\MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (1)
319
TextAnchor resolvedAnchor = new
TextAnchor
();
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (1)
228
TextAnchor anchor = new
TextAnchor
();
src\Framework\System\Windows\Annotations\AnnotationHelper.cs (1)
998
TextAnchor copy = new
TextAnchor
(textAnchor);
66 references to TextAnchor
PresentationFramework (66)
src\Framework\MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (6)
319
TextAnchor
resolvedAnchor = new TextAnchor();
464
TextAnchor
anchor = selection as
TextAnchor
;
489
private
TextAnchor
CheckAnchor(object selection)
494
TextAnchor
anchor = selection as
TextAnchor
;
src\Framework\MS\Internal\Annotations\Anchoring\LocatorManager.cs (1)
89
RegisterSelectionProcessor(textProcessor, typeof(
TextAnchor
));
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (9)
81
TextAnchor
firstAnchor = anchor1 as
TextAnchor
;
82
TextAnchor
secondAnchor = anchor2 as
TextAnchor
;
102
newAnchor =
TextAnchor
.ExclusiveUnion(firstAnchor, secondAnchor);
242
TextAnchor
anchor = selection as
TextAnchor
;
388
TextAnchor
textAnchor = selection as
TextAnchor
;
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (2)
228
TextAnchor
anchor = new TextAnchor();
292
anchor =
TextAnchor
.TrimToIntersectionWith(anchor, textView.TextSegments);
src\Framework\MS\Internal\Annotations\Component\HighlightComponent.cs (12)
245
TextAnchor
textAnchor = attachedAnnotation.AttachedAnchor as
TextAnchor
;
348
TextAnchor
textAnchor = _attachedAnnotation.AttachedAnchor as
TextAnchor
;
432
TextAnchor
IHighlightRange.Range
480
TextAnchor
fullAnchor = _attachedAnnotation.FullyAttachedAnchor as
TextAnchor
;
543
TextAnchor
textAnchor = attachedAnnotation.AttachedAnchor as
TextAnchor
;
606
TextAnchor
textAnchor = _attachedAnnotation.AttachedAnchor as
TextAnchor
;
683
private
TextAnchor
_range; //the entire range for this highlight
src\Framework\MS\Internal\Annotations\Component\IHighlightRange.cs (1)
85
TextAnchor
Range
src\Framework\MS\Internal\Annotations\Component\MArkedHighlightComponent.cs (7)
493
TextAnchor
anchor = _attachedAnnotation.AttachedAnchor as
TextAnchor
;
679
TextAnchor
anchor = ((IHighlightRange)HighlightAnchor).Range;
1132
TextAnchor
firstAnchor = ((IAttachedAnnotation)first.AttachedAnnotations[0]).FullyAttachedAnchor as
TextAnchor
;
1133
TextAnchor
secondAnchor = ((IAttachedAnnotation)second.AttachedAnnotations[0]).FullyAttachedAnchor as
TextAnchor
;
src\Framework\MS\Internal\Annotations\TextAnchor.cs (10)
53
internal TextAnchor(
TextAnchor
anchor)
174
TextAnchor
other = obj as
TextAnchor
;
264
internal static
TextAnchor
ExclusiveUnion(
TextAnchor
anchor,
TextAnchor
otherAnchor)
288
internal static
TextAnchor
TrimToRelativeComplement(
TextAnchor
anchor, ICollection<TextSegment> textSegments)
390
internal static
TextAnchor
TrimToIntersectionWith(
TextAnchor
anchor, ICollection<TextSegment> textSegments)
src\Framework\System\Windows\Annotations\AnnotationHelper.cs (11)
225
TextSelectionProcessor anchorProcessor = service.LocatorManager.GetSelectionProcessor(typeof(
TextAnchor
)) as TextSelectionProcessor;
658
TextAnchor
ta = attachedAnnotations[i].AttachedAnchor as
TextAnchor
;
703
TextSelectionProcessor anchorProcessor = service.LocatorManager.GetSelectionProcessor(typeof(
TextAnchor
)) as TextSelectionProcessor;
847
TextAnchor
anchor = attachedAnnot.AttachedAnchor as
TextAnchor
;
870
private static bool CheckCaret(ITextSelection selection,
TextAnchor
anchor, XmlQualifiedName type)
996
TextAnchor
textAnchor = attachedAnnotation.FullyAttachedAnchor as
TextAnchor
;
998
TextAnchor
copy = new TextAnchor(textAnchor);
1001
copy =
TextAnchor
.TrimToRelativeComplement(copy, textRange.TextSegments);
src\Framework\System\Windows\Annotations\AnnotationService.cs (5)
223
_locatorManager.RegisterSelectionProcessor(new FixedTextSelectionProcessor(), typeof(
TextAnchor
));
228
_locatorManager.RegisterSelectionProcessor(new TextSelectionProcessor(), typeof(
TextAnchor
));
889
TextAnchor
newAnchor = secondAttachedAnnotation.AttachedAnchor as
TextAnchor
;
1616
flowAnchorProcessor = this.LocatorManager.GetSelectionProcessor(typeof(
TextAnchor
)) as TextSelectionProcessor;
src\Framework\System\Windows\Controls\Primitives\DocumentViewerBase.cs (2)
1404
service.LocatorManager.RegisterSelectionProcessor(new FixedTextSelectionProcessor(), typeof(
TextAnchor
));
1417
service.LocatorManager.RegisterSelectionProcessor(new TextSelectionProcessor(), typeof(
TextAnchor
));