This documentation is archived and is not being maintained.

Annotation.Anchors Property

Gets a collection of zero or more AnnotationResource anchor elements that define the data selection(s) being annotated.

Namespace:  System.Windows.Annotations
Assembly:  PresentationFramework (in PresentationFramework.dll)

public Collection<AnnotationResource> Anchors { get; }
You cannot set this property in XAML.

Property Value

Type: System.Collections.ObjectModel.Collection<AnnotationResource>
A collection of zero or more AnnotationResource anchor elements.

Each AnnotationResource in the Anchors collection identifies a data selection to which the annotation is bound (in other words, "the data selection that is being annotated"). While most annotations refer to a single data selection and contain just one anchor AnnotationResource, multiple anchors can occur if a single annotation refers to multiple data selections.

The returned Anchors collection is never null; however, the collection may contain zero elements.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0