AnnotationService.GetService Method (FlowDocumentReader)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Returns the AnnotationService associated with a specified FlowDocumentReader.

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

public static AnnotationService GetService(
	FlowDocumentReader reader
)

Parameters

reader
Type: System.Windows.Controls.FlowDocumentReader

The document reader control to return the AnnotationService instance for.

Return Value

Type: System.Windows.Annotations.AnnotationService

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

Exception Condition
ArgumentNullException

reader 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: