Share via


OpenXmlElement.Ancestors-Methode

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()

Rückgabewert

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

Siehe auch

Referenz

OpenXmlElement Klasse

OpenXmlElement-Member

Ancestors Überladung

DocumentFormat.OpenXml-Namespace