AnnotationResource AnnotationResource AnnotationResource AnnotationResource Class

定義

表示 Annotation 的資源錨點或貨物資源。Represents a content anchor or cargo resource for an Annotation.

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
Public NotInheritable Class AnnotationResource
Implements INotifyPropertyChanged, IXmlSerializable
繼承
AnnotationResourceAnnotationResourceAnnotationResourceAnnotationResource
實作

備註

AnnotationResource專案是用來在Anchors中建立模型 (正在標注的資料) Cargos和 (使用者所提供的資料, 例如Annotation文字附注)。AnnotationResource elements are used to model Anchors (the data that is being annotated) and Cargos (the data provided by the user such as a text note) in an Annotation.

透過使用ContentLocators AnnotationResource , 可以參考內容、直接包含內容或兩者。Through the use of ContentLocators an AnnotationResource can refer to the content, directly contain the content, or both.

建構函式

AnnotationResource() AnnotationResource() AnnotationResource() AnnotationResource()

此建構函式支援 Windows Presentation Foundation 基礎結構,但並不適合直接透過您的程式碼使用。This constructor supports the Windows Presentation Foundation infrastructure and is not intended to be used directly from your code.

AnnotationResource(Guid) AnnotationResource(Guid) AnnotationResource(Guid) AnnotationResource(Guid)

此建構函式支援 Windows Presentation Foundation 基礎結構,但並不適合直接透過您的程式碼使用。This constructor supports the Windows Presentation Foundation infrastructure and is not intended to be used directly from your code.

AnnotationResource(String) AnnotationResource(String) AnnotationResource(String) AnnotationResource(String)

使用指定的名稱,初始化 AnnotationResource 類別的新執行個體。Initializes a new instance of the AnnotationResource class with a specified name.

屬性

ContentLocators ContentLocators ContentLocators ContentLocators

取得這個資源中包含之 ContentLocatorBase 項目的集合。Gets the collection of ContentLocatorBase elements contained in this resource.

Contents Contents Contents Contents

取得定義這個資源內容的 XmlElement 物件集合。Gets a collection of the XmlElement objects that define the content of this resource.

Id Id Id Id

取得此資源的 GUID。Gets the GUID of this resource.

Name Name Name Name

取得或設定這個 AnnotationResource 的名稱。Gets or sets a name for this AnnotationResource.

方法

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetSchema() GetSchema() GetSchema() GetSchema()

一律傳回 nullAlways returns null. 如需結構描述詳細資料,請參閱註釋結構描述See Annotations Schema for schema details.

GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
ReadXml(XmlReader) ReadXml(XmlReader) ReadXml(XmlReader) ReadXml(XmlReader)

從指定的 XmlReader 還原序列化 AnnotationResourceDeserializes the AnnotationResource from a specified XmlReader.

ToString() ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)
WriteXml(XmlWriter) WriteXml(XmlWriter) WriteXml(XmlWriter) WriteXml(XmlWriter)

AnnotationResource 序列化為指定的 XmlWriterSerializes the AnnotationResource to a specified XmlWriter.

明確介面實作

INotifyPropertyChanged.PropertyChanged INotifyPropertyChanged.PropertyChanged INotifyPropertyChanged.PropertyChanged INotifyPropertyChanged.PropertyChanged

這個類型或成員支援 Windows Presentation Foundation (WPF) 基礎結構,而且不能從程式碼直接使用。This type or member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.

適用於