Click or drag to resize

OpenXmlElementAncestorsT Method

Enumerates only the current element's ancestors that have the specified type.

Namespace: DocumentFormat.OpenXml
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll) Version: 2.20.0+Branch.release-v2.20.0.Sha.a873d3fbff9bffe179fea62486da950adf5be65d.a873d3fbff9bffe179fea62486da950adf5be65d
Syntax
public IEnumerable<T> Ancestors<T>()
where T : OpenXmlElement

Type Parameters

T
The element type.

Return Value

IEnumerableT
An IEnumerable object that contains a list of the current OpenXmlElement element's ancestors.
See Also