OpenXmlElement.IsBefore method

Office 2013 and later

Determines if the current element appears before a specified element in document order.

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

public bool IsBefore(
	OpenXmlElement element
)

Parameters

element
Type: DocumentFormat.OpenXml.OpenXmlElement

The element to compare for order.

Return value

Type: System.Boolean
Returns true if the current element appears before the specified element in document order; otherwise returns false.
Show: