Share via


OpenXmlPartContainer.AddPart Generic Method (T) (Microsoft.Office.DocumentFormat.OpenXml.Packaging)

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Add the part to the document. Must use the returned part to operate the part added to the document.

Namespace: Microsoft.Office.DocumentFormat.OpenXml.Packaging
Assembly: Microsoft.Office.DocumentFormat.OpenXml (in microsoft.office.documentformat.openxml.dll)

Syntax

'Declaration
Public Overridable Function AddPart(Of T As OpenXmlPart) ( _
    part As T _
) As T
'Usage
Dim instance As OpenXmlPartContainer
Dim part As T
Dim returnValue As T

returnValue = instance.AddPart(part)
public virtual T AddPart<T> (
    T part
) where T : OpenXmlPart

Parameters

  • part
    The part to be added to the document.

See Also

Reference

OpenXmlPartContainer Class
OpenXmlPartContainer Members
Microsoft.Office.DocumentFormat.OpenXml.Packaging Namespace