Partager via


OpenXmlElement.PreviousSibling<T> Method

Gets the specified type OpenXmlElement preceding this OpenXmlElement. If there is no preceding OpenXmlElement, a null reference (Nothing in Visual Basic) is returned.

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

Syntax

'Declaration
Public Function PreviousSibling(Of T As OpenXmlElement) As T
'Usage
Dim instance As OpenXmlElement
Dim returnValue As T

returnValue = instance.PreviousSibling()
public T PreviousSibling<T>()
where T : OpenXmlElement

Type Parameters

  • T

Return Value

Type: T
The OpenXmlElement in the specified type preceding this OpenXmlElement.

See Also

Reference

OpenXmlElement Class

OpenXmlElement Members

PreviousSibling Overload

DocumentFormat.OpenXml Namespace