AnnotationService::Enable Method (AnnotationStore^)

 

Enables the AnnotationService for use with a given AnnotationStore and displays all visible annotations.

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

public:
void Enable(
	AnnotationStore^ annotationStore
)

Parameters

annotationStore
Type: System.Windows.Annotations.Storage::AnnotationStore^

The annotation store to use for reading, writing, and displaying annotations.

Exception Condition
ArgumentNullException

annotationStore is null.

When Enable is called all annotations in the viewer control window are displayed. (The viewer control associated with the annotation service is specified in the parameter to the AnnotationService constructor.)

The following example shows how to use the Enable method when you start an AnnotationService.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show: