Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Collapse the table of content
Expand the table of content

System.Windows.Annotations Namespace

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

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 (WPF) 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.

  Class Description
Public class Annotation Represents a user annotation in the Microsoft Annotations Framework.
Public class AnnotationAuthorChangedEventArgs Provides data for the AuthorChanged event.
Public class AnnotationDocumentPaginator Provides a DocumentPaginator for printing a document together with its associated annotations.
Public class AnnotationHelper Provides utility methods and commands to create and delete highlight, ink sticky note, and text sticky note annotations.
Public class AnnotationResource Represents a content anchor or cargo resource for an Annotation.
Public class AnnotationResourceChangedEventArgs Provides data for the AnchorChanged and CargoChanged events.
Public class AnnotationService Provides core services of the Microsoft Annotations Framework to manage and display user annotations.
Public class ContentLocator Represents an ordered set of ContentLocatorPart elements that identify an item of content.
Public class ContentLocatorBase Represents an object that identifies an item of content.
Public class ContentLocatorGroup Represents an ordered set of ContentLocator elements that identify an item of content.
Public class ContentLocatorPart Represents a set of name/value pairs that identify an item of content.
Public class TextAnchor Represents a selection of content that an annotation is anchored to.

  Interface Description
Public interface IAnchorInfo Provides the capabilities for matching annotations with the corresponding annotated objects.

  Delegate Description
Public delegate AnnotationAuthorChangedEventHandler Represents the method that handles the AuthorChanged event raised by the Annotation class.
Public delegate AnnotationResourceChangedEventHandler Represents the method that handles the AnchorChanged or CargoChanged events raised by the Annotation class.

  Enumeration Description
Public enumeration AnnotationAction Specifies the actions that occur with Annotation author, anchor, and cargo resources.
© 2015 Microsoft