Annotation Annotation Annotation Annotation Class

定義

表示 Microsoft Annotations Framework 中的使用者註釋。Represents a user annotation in the Microsoft Annotations Framework.

public ref class Annotation sealed : System::Xml::Serialization::IXmlSerializable
public sealed class Annotation : System.Xml.Serialization.IXmlSerializable
type Annotation = class
    interface IXmlSerializable
Public NotInheritable Class Annotation
Implements IXmlSerializable
繼承
AnnotationAnnotationAnnotationAnnotation
實作

備註

Annotation表示具有所有相關聯錨定和內容資料的單一批註。Annotation represents a single annotation with all associated anchoring and content data. 批註包含下列主要元素。An annotation consists of the following main elements.

  • 零個、一個或多Anchors個識別正在標注的內容。Zero, one, or more Anchors that identify what is being annotated.

  • 零個、一個或多Cargos個包含批註的使用者資料。Zero, one, or more Cargos that contain the user data for the annotation.

  • 零個、一個或多Authors個定義批註的建立者。Zero, one, or more Authors that define who created the annotation.

  • CreationTime ,指定建立注釋的日期和時間。A CreationTime that specifies the date and time when the annotation was created.

  • LastModificationTime ,指定注釋上次更新的時間。A LastModificationTime that specifies when the annotation was last updated.

  • 唯一的注釋Id (全域唯一識別碼(GUID))。A unique annotation Id (a globally unique identifier (GUID)).

建構函式

Annotation() Annotation() Annotation() Annotation()

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

Annotation(XmlQualifiedName) Annotation(XmlQualifiedName) Annotation(XmlQualifiedName) Annotation(XmlQualifiedName)

初始化 Annotation 類別的新執行個體,這個執行個體有指定的型別名稱和命名空間。Initializes a new instance of the Annotation class that has a specified type name and namespace.

Annotation(XmlQualifiedName, Guid, DateTime, DateTime) Annotation(XmlQualifiedName, Guid, DateTime, DateTime) Annotation(XmlQualifiedName, Guid, DateTime, DateTime) Annotation(XmlQualifiedName, Guid, DateTime, DateTime)

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

屬性

Anchors Anchors Anchors Anchors

取得零個或多個定義標註資料選取範圍之 AnnotationResource 錨點項目的集合。Gets a collection of zero or more AnnotationResource anchor elements that define the data selection(s) being annotated.

AnnotationType AnnotationType AnnotationType AnnotationType

取得附註型別的 XmlQualifiedNameGets the XmlQualifiedName of the annotation type.

Authors Authors Authors Authors

取得零個或多個識別 Annotation 建立者之作者字串的集合。Gets a collection of zero or more author strings that identify who created the Annotation.

Cargos Cargos Cargos Cargos

取得零個或多個包含附註資料之 AnnotationResource 貨物項目的集合。Gets a collection of zero or more AnnotationResource cargo elements that contain data for the annotation.

CreationTime CreationTime CreationTime CreationTime

取得建立附註的日期與時間。Gets the date and the time that the annotation was created.

Id Id Id Id

取得 Annotation 的 GUID。Gets the GUID of the Annotation.

LastModificationTime LastModificationTime LastModificationTime LastModificationTime

取得上次修改附註的日期與時間。Gets the date and the time that the annotation was last modified.

方法

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 還原序列化 AnnotationDeserializes the Annotation 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)

將註釋序列化為指定的 XmlWriterSerializes the annotation to a specified XmlWriter.

事件

AnchorChanged AnchorChanged AnchorChanged AnchorChanged

在附註 Anchors 的清單中加入、移除或修改錨點時發生。Occurs when an anchor is added, removed, or modified in the list of annotation Anchors.

AuthorChanged AuthorChanged AuthorChanged AuthorChanged

在附註 Authors 的清單中加入、移除或修改作者時發生。Occurs when an author is added, removed, or modified in the list of annotation Authors.

CargoChanged CargoChanged CargoChanged CargoChanged

在附註 Cargos 的清單中加入、移除或修改貨物時發生。Occurs when a cargo is added, removed, or modified in the list of annotation Cargos.

適用於