OpenXmlElement.Elements Method

Definition

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

Applies to