OpenXmlElement.PrependChild<T>(T) 方法

定义

在当前元素的子元素列表的开头插入指定的元素。

public virtual T PrependChild<T> (T newChild) where T : DocumentFormat.OpenXml.OpenXmlElement;
public virtual T PrependChild<T> (T? newChild) where T : DocumentFormat.OpenXml.OpenXmlElement;
public virtual T? PrependChild<T> (T? newChild) where T : DocumentFormat.OpenXml.OpenXmlElement;
abstract member PrependChild : 'T -> 'T (requires 'T :> DocumentFormat.OpenXml.OpenXmlElement)
override this.PrependChild : 'T -> 'T (requires 'T :> DocumentFormat.OpenXml.OpenXmlElement)
Public Overridable Function PrependChild(Of T As OpenXmlElement) (newChild As T) As T

类型参数

T

参数

newChild
T

OpenXmlElement 添加的元素。

返回

T

OpenXmlElement已添加的元素。

适用于