AnnotationStore.GetAnnotations Method (ContentLocator)

 

Returns a list of annotations that have Anchors with locators that begin with a matching ContentLocatorPart sequence.

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

public abstract IList<Annotation> GetAnnotations(
	ContentLocator anchorLocator
)

Parameters

anchorLocator
Type: System.Windows.Annotations.ContentLocator

The starting ContentLocatorPart sequence to return matching annotations for.

Return Value

Type: System.Collections.Generic.IList<Annotation>

The list of annotations that have Anchors with locators that start and match the given anchorLocator; otherwise, null if no matching annotations were found.

This GetAnnotations method internally uses the StartsWith method of the ContentLocator class to search and match for the annotations to return.

.NET Framework
Available since 3.0
Return to top
Show: