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追加された要素。

適用対象