OpenXmlPartContainer.Annotation<T> Method

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Gets the first annotation object of the specified type from this PartContainer.

Namespace:  DocumentFormat.OpenXml.Packaging
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)


Public Function Annotation(Of T As Class) As T
Dim instance As OpenXmlPartContainer
Dim returnValue As T

returnValue = instance.Annotation()
public T Annotation<T>()
where T : class

Type Parameters

  • T
    Specifies the Type of the annotation to retrieve.

Return Value

Type: T
Returns the first annotation object of the specified type.

See Also


OpenXmlPartContainer Class

OpenXmlPartContainer Members

Annotation Overload

DocumentFormat.OpenXml.Packaging Namespace