This topic has not yet been rated - Rate this topic

Annotation Class

Represents a user annotation in the Microsoft Annotations Framework.

System.Object
  System.Windows.Annotations.Annotation

Namespace:  System.Windows.Annotations
Assembly:  PresentationFramework (in PresentationFramework.dll)
XMLNS for XAML: Not mapped to an xmlns.
public sealed class Annotation : IXmlSerializable
<Annotation .../>

The Annotation type exposes the following members.

  Name Description
Public method Annotation() This constructor supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.
Public method Annotation(XmlQualifiedName) Initializes a new instance of the Annotation class that has a specified type name and namespace.
Public method 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.
Top
  Name Description
Public property Anchors Gets a collection of zero or more AnnotationResource anchor elements that define the data selection(s) being annotated.
Public property AnnotationType Gets the XmlQualifiedName of the annotation type.
Public property Authors Gets a collection of zero or more author strings that identify who created the Annotation.
Public property Cargos Gets a collection of zero or more AnnotationResource cargo elements that contain data for the annotation.
Public property CreationTime Gets the date and the time that the annotation was created.
Public property Id Gets the globally unique identifier (GUID) of the Annotation.
Public property LastModificationTime Gets the date and the time that the annotation was last modified.
Top
  Name Description
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetSchema Always returns null. See Annotations Schema for schema details.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ReadXml Deserializes the Annotation from a specified XmlReader.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method WriteXml Serializes the annotation to a specified XmlWriter.
Top
  Name Description
Public event AnchorChanged Occurs when an anchor is added, removed, or modified in the list of annotation Anchors.
Public event AuthorChanged Occurs when an author is added, removed, or modified in the list of annotation Authors.
Public event CargoChanged Occurs when a cargo is added, removed, or modified in the list of annotation Cargos.
Top

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

.NET Framework

Supported in: 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ