Rediger

Del via


System.Windows.Annotations Namespace

Provides classes to support user-created annotations on content displayed in WPF document viewing controls.

Classes

Annotation

Represents a user annotation in the Microsoft Annotations Framework.

AnnotationAuthorChangedEventArgs

Provides data for the AuthorChanged event.

AnnotationDocumentPaginator

Provides a DocumentPaginator for printing a document together with its associated annotations.

AnnotationHelper

Provides utility methods and commands to create and delete highlight, ink sticky note, and text sticky note annotations.

AnnotationResource

Represents a content anchor or cargo resource for an Annotation.

AnnotationResourceChangedEventArgs

Provides data for the AnchorChanged and CargoChanged events.

AnnotationService

Provides core services of the Microsoft Annotations Framework to manage and display user annotations.

ContentLocator

Represents an ordered set of ContentLocatorPart elements that identify an item of content.

ContentLocatorBase

Represents an object that identifies an item of content.

ContentLocatorGroup

Represents an ordered set of ContentLocator elements that identify an item of content.

ContentLocatorPart

Represents a set of name/value pairs that identify an item of content.

TextAnchor

Represents a selection of content that an annotation is anchored to.

Interfaces

IAnchorInfo

Provides the capabilities for matching annotations with the corresponding annotated objects.

Enums

AnnotationAction

Specifies the actions that occur with Annotation author, anchor, and cargo resources.

Delegates

AnnotationAuthorChangedEventHandler

Represents the method that handles the AuthorChanged event raised by the Annotation class.

AnnotationResourceChangedEventHandler

Represents the method that handles the AnchorChanged or CargoChanged events raised by the Annotation class.

Remarks

Types in the System.Windows.Annotations namespace are provided to support the management of user-created annotations on application data displayed in Windows Presentation Foundation document viewing controls. Using the Microsoft Annotations Framework applications can add support for user-created notes and highlights that are stored separate from the application document itself. Since the user annotation information is stored separately from the document content, users can even add notes and highlights to read-only or rights-managed documents that cannot be physically changed.

The WPF document viewing controls that support user-annotation capabilities are based on DocumentViewerBase derived subclasses such as DocumentViewer, FlowDocumentPageViewer, and FlowDocumentScrollViewer as well as FlowDocumentReader.

See also