OpenXmlElement.Annotations<T> method

Office 2013 and later

Gets a collection of annotations with the specified type for the current OpenXmlElement element.

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

public IEnumerable<T> Annotations<T>()
where T : class

Type parameters


The type of the annotations to retrieve.

Return value

Type: System.Collections.Generic.IEnumerable<T>
An IEnumerable(T) object that contains the annotations for current OpenXmlElement element.