System.Windows.Annotations 命名空间

提供支持用户创建的批注的类,这些批注与 WPF 文档查看控件中显示的内容有关。 Provides classes to support user-created annotations on content displayed in WPF document viewing controls.

Annotation

表示 Microsoft Annotations Framework 中的用户批注。Represents a user annotation in the Microsoft Annotations Framework.

AnnotationAuthorChangedEventArgs

AuthorChanged 事件提供数据。Provides data for the AuthorChanged event.

AnnotationDocumentPaginator

提供一个 DocumentPaginator,用于打印文档及其关联的批注。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

表示 Annotation 的内容定位点或 cargo 资源。Represents a content anchor or cargo resource for an Annotation.

AnnotationResourceChangedEventArgs

提供有关 AnchorChangedCargoChanged 事件的数据。Provides data for the AnchorChanged and CargoChanged events.

AnnotationService

提供 Microsoft Annotations Framework 核心服务,管理和显示用户注释。Provides core services of the Microsoft Annotations Framework to manage and display user annotations.

ContentLocator

表示一组有序的 ContentLocatorPart 元素,这些元素用于标识内容的项。Represents an ordered set of ContentLocatorPart elements that identify an item of content.

ContentLocatorBase

表示一个对象,它标识内容的项。Represents an object that identifies an item of content.

ContentLocatorGroup

表示一组有序的 ContentLocator 元素,这些元素用于标识内容的项。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.

接口

IAnchorInfo

提供将批注与相应的批注对象相匹配的功能。Provides the capabilities for matching annotations with the corresponding annotated objects.

枚举

AnnotationAction

指定对 Annotation author、anchor 和 cargo 资源所执行的操作。Specifies the actions that occur with Annotation author, anchor, and cargo resources.

委托

AnnotationAuthorChangedEventHandler

表示处理 Annotation 类所引发的 AuthorChanged 事件的方法。Represents the method that handles the AuthorChanged event raised by the Annotation class.

AnnotationResourceChangedEventHandler

表示处理 Annotation 类所引发的 AnchorChangedCargoChanged 事件的方法。Represents the method that handles the AnchorChanged or CargoChanged events raised by the Annotation class.

注解

System.Windows.Annotations提供命名空间中的类型,以支持对 Windows Presentation Foundation 文档查看控件中显示的应用程序数据进行用户创建的批注的管理。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. 使用 Microsoft 批注框架应用程序可以添加对用户创建的注释和突出显示内容的支持,这些注释和突出显示是独立于应用程序文档本身的。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.

支持用户批注功能的 WPF 文档查看控件基于 DocumentViewerBase 派生子类 DocumentViewer ,如、 FlowDocumentPageViewerFlowDocumentScrollViewer FlowDocumentReaderThe 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.

另请参阅