OpenXmlElement.Annotation<T> method

Office 2013 and later

Get the first annotation object of the specified type from the current OpenXmlElement element.

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

public T Annotation<T>()
where T : class

Type parameters

T

The type of the annotation to retrieve.

Return value

Type: T
The first annotation object of the specified type.
Show: