AnnotationService::GetService Method (FlowDocumentScrollViewer^)

 

Returns the AnnotationService associated with a specified FlowDocumentScrollViewer.

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

public:
static AnnotationService^ GetService(
	FlowDocumentScrollViewer^ viewer
)

Parameters

viewer
Type: System.Windows.Controls::FlowDocumentScrollViewer^

The document viewer control to return the AnnotationService instance for.

Return Value

Type: System.Windows.Annotations::AnnotationService^

The AnnotationService associated with the given document viewer control; or null if the specified viewer control has no AnnotationService.

Exception Condition
ArgumentNullException

viewer is null.

The GetService method can be used to return the AnnotationService associated with the following document viewing controls:

The viewer control associated with the annotation service is specified in the parameter to the AnnotationService constructor.

.NET Framework
Available since 3.0
Return to top
Show: