Export (0) Print
Expand All

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.

  NameDescription
Public methodAnnotation()This constructor supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.
Public methodAnnotation(XmlQualifiedName)Initializes a new instance of the Annotation class that has a specified type name and namespace.
Public methodAnnotation(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

  NameDescription
Public propertyAnchorsGets a collection of zero or more AnnotationResource anchor elements that define the data selection(s) being annotated.
Public propertyAnnotationTypeGets the XmlQualifiedName of the annotation type.
Public propertyAuthorsGets a collection of zero or more author strings that identify who created the Annotation.
Public propertyCargosGets a collection of zero or more AnnotationResource cargo elements that contain data for the annotation.
Public propertyCreationTimeGets the date and the time that the annotation was created.
Public propertyIdGets the globally unique identifier (GUID) of the Annotation.
Public propertyLastModificationTimeGets the date and the time that the annotation was last modified.
Top

  NameDescription
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetSchemaAlways returns null. See Annotations Schema for schema details.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodReadXmlDeserializes the Annotation from a specified XmlReader.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodWriteXmlSerializes the annotation to a specified XmlWriter.
Top

  NameDescription
Public eventAnchorChangedOccurs when an anchor is added, removed, or modified in the list of annotation Anchors.
Public eventAuthorChangedOccurs when an author is added, removed, or modified in the list of annotation Authors.
Public eventCargoChangedOccurs 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.5.2, 4.5.1, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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.
Show:
© 2014 Microsoft