Annotation Annotation Annotation Annotation Class

Definition

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
Inheritance
AnnotationAnnotationAnnotationAnnotation
Implements

Remarks

Annotation represents a single annotation with all associated anchoring and content data. An annotation consists of the following main elements.

  • Zero, one, or more Anchors that identify what is being annotated.

  • Zero, one, or more Cargos that contain the user data for the annotation.

  • Zero, one, or more Authors that define who created the annotation.

  • A CreationTime that specifies the date and time when the annotation was created.

  • A LastModificationTime that specifies when the annotation was last updated.

  • A unique annotation Id (a globally unique identifier (GUID)).

Constructors

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

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)

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)

This constructor supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.

Properties

Anchors Anchors Anchors Anchors

Gets a collection of zero or more AnnotationResource anchor elements that define the data selection(s) being annotated.

AnnotationType AnnotationType AnnotationType AnnotationType

Gets the XmlQualifiedName of the annotation type.

Authors Authors Authors Authors

Gets a collection of zero or more author strings that identify who created the Annotation.

Cargos Cargos Cargos Cargos

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

Gets the GUID of the Annotation.

LastModificationTime LastModificationTime LastModificationTime LastModificationTime

Gets the date and the time that the annotation was last modified.

Methods

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

Always returns null. See Annotations Schema for schema details.

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

Gets the Type of the current instance.

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

Creates a shallow copy of the current Object.

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

Deserializes 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)

Serializes the annotation to a specified XmlWriter.

Events

AnchorChanged AnchorChanged AnchorChanged AnchorChanged

Occurs when an anchor is added, removed, or modified in the list of annotation Anchors.

AuthorChanged AuthorChanged AuthorChanged AuthorChanged

Occurs when an author is added, removed, or modified in the list of annotation Authors.

CargoChanged CargoChanged CargoChanged CargoChanged

Occurs when a cargo is added, removed, or modified in the list of annotation Cargos.

Applies to