Share via


OpenXmlElement.PreviousSibling Method

Definition

Overloads

PreviousSibling()

Gets the OpenXmlElement element that immediately precedes the current OpenXmlElement element. Returns null (Nothing in Visual Basic ) if there is no preceding OpenXmlElement element.

PreviousSibling<T>()

Gets the OpenXmlElement element with the specified type that precedes the current OpenXmlElement. Returns null (Nothing in Visual Basic) if there is no preceding OpenXmlElement element.

PreviousSibling()

Gets the OpenXmlElement element that immediately precedes the current OpenXmlElement element. Returns null (Nothing in Visual Basic ) if there is no preceding OpenXmlElement element.

public DocumentFormat.OpenXml.OpenXmlElement PreviousSibling ();
public DocumentFormat.OpenXml.OpenXmlElement? PreviousSibling ();
member this.PreviousSibling : unit -> DocumentFormat.OpenXml.OpenXmlElement
Public Function PreviousSibling () As OpenXmlElement

Returns

The OpenXmlElement element that immediately precedes the current OpenXmlElement element.

Applies to

PreviousSibling<T>()

Gets the OpenXmlElement element with the specified type that precedes the current OpenXmlElement. Returns null (Nothing in Visual Basic) if there is no preceding OpenXmlElement element.

public T PreviousSibling<T> () where T : DocumentFormat.OpenXml.OpenXmlElement;
public T? PreviousSibling<T> () where T : DocumentFormat.OpenXml.OpenXmlElement;
member this.PreviousSibling : unit -> 'T (requires 'T :> DocumentFormat.OpenXml.OpenXmlElement)
Public Function PreviousSibling(Of T As OpenXmlElement) () As T

Type Parameters

T

Returns

T

The OpenXmlElement element with the specified type that precedes the current OpenXmlElement element.

Applies to