OpenXmlElement.Descendants<T> Method

Enumerate all the descendants elements (which type is T) of this element. Preorder traversering.

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


Public Function Descendants(Of T As OpenXmlElement) As IEnumerable(Of T)
Dim instance As OpenXmlElement
Dim returnValue As IEnumerable(Of T)

returnValue = instance.Descendants()
public IEnumerable<T> Descendants<T>()
where T : OpenXmlElement

Type Parameters

  • T
    Type of element.

Return Value

Type: System.Collections.Generic.IEnumerable<T>

See Also


OpenXmlElement Class

OpenXmlElement Members

Descendants Overload

DocumentFormat.OpenXml Namespace