AnnotationResource 类

定义

表示 Annotation 的内容定位点或 cargo 资源。

public ref class AnnotationResource sealed : System::ComponentModel::INotifyPropertyChanged, System::Xml::Serialization::IXmlSerializable
public sealed class AnnotationResource : System.ComponentModel.INotifyPropertyChanged, System.Xml.Serialization.IXmlSerializable
type AnnotationResource = class
    interface IXmlSerializable
    interface INotifyPropertyChanged
type AnnotationResource = class
    interface INotifyPropertyChanged
    interface IXmlSerializable
Public NotInheritable Class AnnotationResource
Implements INotifyPropertyChanged, IXmlSerializable
继承
AnnotationResource
实现

注解

AnnotationResource 元素用于对 () 批注的数据进行建模 Anchors ,并 Cargos (用户提供的数据,如 中的 Annotation文本注释) 。

通过使用 ContentLocators 可以 AnnotationResource 引用内容、直接包含内容或同时引用两者。

构造函数

AnnotationResource()

此构造函数支持 Windows Presentation Foundation 基础结构,且不应在代码中直接使用。

AnnotationResource(Guid)

此构造函数支持 Windows Presentation Foundation 基础结构,且不应在代码中直接使用。

AnnotationResource(String)

使用指定的名称初始化 AnnotationResource 类的新实例。

属性

ContentLocators

获取包含在此资源中的 ContentLocatorBase 元素的集合。

Contents

获取定义此资源内容的 XmlElement 对象的集合。

Id

获取此资源的 GUID。

Name

获取或设置此 AnnotationResource 的名称。

方法

Equals(Object)

确定指定对象是否等于当前对象。

(继承自 Object)
GetHashCode()

作为默认哈希函数。

(继承自 Object)
GetSchema()

始终返回 null。 有关架构的详细信息,请参阅批注架构

GetType()

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。

(继承自 Object)
ReadXml(XmlReader)

从指定的 XmlReader 反序列化 AnnotationResource

ToString()

返回表示当前对象的字符串。

(继承自 Object)
WriteXml(XmlWriter)

AnnotationResource 序列化为指定的 XmlWriter

显式接口实现

INotifyPropertyChanged.PropertyChanged

此类型或成员支持 Windows Presentation Foundation (WPF) 基础结构,并且不应在代码中直接使用。

适用于