AnnotationService Constructor (DocumentViewerBase^)

 

Initializes a new instance of the AnnotationService class for use with a specified DocumentViewer or FlowDocumentPageViewer control.

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

public:
AnnotationService(
	DocumentViewerBase^ viewer
)

Parameters

viewer
Type: System.Windows.Controls.Primitives::DocumentViewerBase^

The document viewing control associated with the AnnotationService.

Exception Condition
ArgumentNullException

viewer is null.

This constructor can be used with DocumentViewerBase derived controls:

The following example shows use of the AnnotationService constructor.

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

.NET Framework
Available since 3.0
Return to top
Show: