OpenXmlElement.PreviousSibling 方法

定义

重载

PreviousSibling()

获取紧接在当前 OpenXmlElement 元素之前的 OpenXmlElement 元素。 如果没有前面的 OpenXmlElement 元素,则返回 null (Visual Basic ) 中 Nothing。

PreviousSibling<T>()

获取位于当前 OpenXmlElement 之前的指定类型的 OpenXmlElement 元素。 如果没有前面的 OpenXmlElement 元素,则返回 null (Visual Basic) Nothing。

PreviousSibling()

获取紧接在当前 OpenXmlElement 元素之前的 OpenXmlElement 元素。 如果没有前面的 OpenXmlElement 元素,则返回 null (Visual Basic ) 中 Nothing。

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

返回

紧接在当前 OpenXmlElement 元素之前的 OpenXmlElement 元素。

适用于

PreviousSibling<T>()

获取位于当前 OpenXmlElement 之前的指定类型的 OpenXmlElement 元素。 如果没有前面的 OpenXmlElement 元素,则返回 null (Visual Basic) Nothing。

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

类型参数

T

返回

T

具有当前 OpenXmlElement 元素之前的指定类型的 OpenXmlElement 元素。

适用于