次の方法で共有


OpenXmlElement.Ancestors<T> Method

Enumerate for specific type of elements in ancestor elements

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

Syntax

'宣言
Public Function Ancestors(Of T As OpenXmlElement) As IEnumerable(Of T)
'使用
Dim instance As OpenXmlElement
Dim returnValue As IEnumerable(Of T)

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

Type Parameters

  • T
    Type of element.

Return Value

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

See Also

Reference

OpenXmlElement Class

OpenXmlElement Members

Ancestors Overload

DocumentFormat.OpenXml Namespace