OpenXmlElement.Ancestors Method

Enumerate all the ancestor nodes of this element.

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


Public Function Ancestors As IEnumerable(Of OpenXmlElement)
Dim instance As OpenXmlElement
Dim returnValue As IEnumerable(Of OpenXmlElement)

returnValue = instance.Ancestors()
public IEnumerable<OpenXmlElement> Ancestors()

Return Value

Type: System.Collections.Generic.IEnumerable<OpenXmlElement>
An IEnumerable of OpenXmlElement of the ancestor elements of this element.

See Also


OpenXmlElement Class

OpenXmlElement Members

Ancestors Overload

DocumentFormat.OpenXml Namespace