 | OpenXmlElementInsertBeforeSelfT Method |
Inserts the specified element immediately before the current element.
Namespace: DocumentFormat.OpenXmlAssembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll) Version: 2.11.3+Branch.master.Sha.3fcdea311b5a001803ff150de35c25fd4cd62f93.3fcdea311b5a001803ff150de35c25fd4cd62f93
Syntaxpublic T InsertBeforeSelf<T>(
T newElement
)
where T : OpenXmlElement
Public Function InsertBeforeSelf(Of T As OpenXmlElement) (
newElement As T
) As T
public:
generic<typename T>
where T : OpenXmlElement
T InsertBeforeSelf(
T newElement
)
member InsertBeforeSelf :
newElement : 'T -> 'T when 'T : OpenXmlElementParameters
- newElement T
- The new element to insert.
Type Parameters
- T
Return Value
TThe inserted element.
Exceptions
See Also