OpenXmlElement.PreviousSibling Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
The OpenXmlElement element with the specified type that precedes the current OpenXmlElement element.