OpenXmlElement.InsertBefore<T>(T, OpenXmlElement) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将指定的元素紧接在指定的引用元素之前。
public virtual T InsertBefore<T> (T newChild, DocumentFormat.OpenXml.OpenXmlElement refChild) where T : DocumentFormat.OpenXml.OpenXmlElement;
public virtual T InsertBefore<T> (T? newChild, DocumentFormat.OpenXml.OpenXmlElement? referenceChild) where T : DocumentFormat.OpenXml.OpenXmlElement;
public virtual T? InsertBefore<T> (T? newChild, DocumentFormat.OpenXml.OpenXmlElement? referenceChild) where T : DocumentFormat.OpenXml.OpenXmlElement;
abstract member InsertBefore : 'T * DocumentFormat.OpenXml.OpenXmlElement -> 'T (requires 'T :> DocumentFormat.OpenXml.OpenXmlElement)
override this.InsertBefore : 'T * DocumentFormat.OpenXml.OpenXmlElement -> 'T (requires 'T :> DocumentFormat.OpenXml.OpenXmlElement)
abstract member InsertBefore : 'T * DocumentFormat.OpenXml.OpenXmlElement -> 'T (requires 'T :> DocumentFormat.OpenXml.OpenXmlElement)
override this.InsertBefore : 'T * DocumentFormat.OpenXml.OpenXmlElement -> 'T (requires 'T :> DocumentFormat.OpenXml.OpenXmlElement)
Public Overridable Function InsertBefore(Of T As OpenXmlElement) (newChild As T, refChild As OpenXmlElement) As T
Public Overridable Function InsertBefore(Of T As OpenXmlElement) (newChild As T, referenceChild As OpenXmlElement) As T
类型参数
- T
参数
- newChild
- T
要 OpenXmlElement 插入的元素。
- refChildreferenceChild
- OpenXmlElement
返回
T
OpenXmlElement插入的元素。