Share via


OpenXmlElement.ElementsBefore Method

Enumerate all the sibling elements before this element in same parent.

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

Syntax

'宣言
Public Function ElementsBefore As IEnumerable(Of OpenXmlElement)
'使用
Dim instance As OpenXmlElement
Dim returnValue As IEnumerable(Of OpenXmlElement)

returnValue = instance.ElementsBefore()
public IEnumerable<OpenXmlElement> ElementsBefore()

Return Value

Type: System.Collections.Generic.IEnumerable<OpenXmlElement>
An IEnumerable of OpenXmlElement of all the sibling elements before this element in same parent.

See Also

Reference

OpenXmlElement Class

OpenXmlElement Members

DocumentFormat.OpenXml Namespace