OpenXmlElement.ElementsBefore method

Office 2013 and later

Enumerates all of the sibling elements that precede the current element and have the same parent as the current element.

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

public IEnumerable<OpenXmlElement> ElementsBefore()

Return value

Type: System.Collections.Generic.IEnumerable<OpenXmlElement>
An IEnumerable object that contains a list of OpenXmlElement elements.
Show: