OpenXmlElement.Elements Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Elements() |
Enumerates all of the current element's children. |
Elements<T>() |
Enumerates only the current element's children that have the specified type. |
Elements()
Enumerates all of the current element's children.
public System.Collections.Generic.IEnumerable<DocumentFormat.OpenXml.OpenXmlElement> Elements ();
member this.Elements : unit -> seq<DocumentFormat.OpenXml.OpenXmlElement>
Public Function Elements () As IEnumerable(Of OpenXmlElement)
Returns
Applies to
Elements<T>()
Enumerates only the current element's children that have the specified type.
public System.Collections.Generic.IEnumerable<T> Elements<T> () where T : DocumentFormat.OpenXml.OpenXmlElement;
member this.Elements : unit -> seq<'T (requires 'T :> DocumentFormat.OpenXml.OpenXmlElement)> (requires 'T :> DocumentFormat.OpenXml.OpenXmlElement)
Public Function Elements(Of T As OpenXmlElement) () As IEnumerable(Of T)
Type Parameters
- T
The element type.
Returns
IEnumerable<T>