 | OpenXmlElementAncestorsT Method |
Enumerates only the current element's ancestors that have the specified type.
Namespace: DocumentFormat.OpenXmlAssembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll) Version: 2.11.3+Branch.master.Sha.3fcdea311b5a001803ff150de35c25fd4cd62f93.3fcdea311b5a001803ff150de35c25fd4cd62f93
Syntaxpublic IEnumerable<T> Ancestors<T>()
where T : OpenXmlElement
Public Function Ancestors(Of T As OpenXmlElement) As IEnumerable(Of T)
public:
generic<typename T>
where T : OpenXmlElement
IEnumerable<T>^ Ancestors()
member Ancestors : unit -> IEnumerable<'T> when 'T : OpenXmlElement
Type Parameters
- T
- The element type.
Return Value
IEnumerableTAn IEnumerable object that contains a list of the current OpenXmlElement element's ancestors.
See Also