AnnotationResource Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 INotifyPropertyChanged
interface IXmlSerializable
Public NotInheritable Class AnnotationResource
Implements INotifyPropertyChanged, IXmlSerializable
- Inheritance
-
AnnotationResource
- Implements
Remarks
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.
Through the use of ContentLocators an AnnotationResource can refer to the content, directly contain the content, or both.
Constructors
| Name | Description |
|---|---|
| AnnotationResource() |
This constructor supports the Windows Presentation Foundation infrastructure and is not intended to be used directly from your code. |
| AnnotationResource(Guid) |
This constructor supports the Windows Presentation Foundation infrastructure and is not intended to be used directly from your code. |
| AnnotationResource(String) |
Initializes a new instance of the AnnotationResource class with a specified name. |
Properties
| Name | Description |
|---|---|
| ContentLocators |
Gets the collection of ContentLocatorBase elements contained in this resource. |
| Contents |
Gets a collection of the XmlElement objects that define the content of this resource. |
| Id |
Gets the GUID of this resource. |
| Name |
Gets or sets a name for this AnnotationResource. |
Methods
| Name | Description |
|---|---|
| GetSchema() |
Always returns |
| ReadXml(XmlReader) |
Deserializes the AnnotationResource from a specified XmlReader. |
| WriteXml(XmlWriter) |
Serializes the AnnotationResource to a specified XmlWriter. |
Explicit Interface Implementations
| Name | Description |
|---|---|
| INotifyPropertyChanged.PropertyChanged |
This type or member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code. |