Share via


OpenXmlElement.Ancestors Method

Enumerate all the ancestor nodes of this element.

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

Syntax

'Declaration
Public Function Ancestors As IEnumerable(Of OpenXmlElement)
'Usage
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

Reference

OpenXmlElement Class

OpenXmlElement Members

Ancestors Overload

DocumentFormat.OpenXml Namespace