AnnotationService::Enable Method (AnnotationStore^)
.NET Framework (current version)
Enables the AnnotationService for use with a given AnnotationStore and displays all visible annotations.
Assembly: PresentationFramework (in PresentationFramework.dll)
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.
.NET Framework
Available since 3.0
Available since 3.0
Show: