MainDocumentPart.AddCustomXmlPart Method

Definition

Overloads

AddCustomXmlPart(CustomXmlPartType)

Adds a CustomXmlPart to the MainDocumentPart

AddCustomXmlPart(String)

Adds a CustomXmlPart to the MainDocumentPart

AddCustomXmlPart(CustomXmlPartType, String)

Adds a CustomXmlPart to the MainDocumentPart

AddCustomXmlPart(String, String)

Adds a CustomXmlPart to the MainDocumentPart

AddCustomXmlPart(CustomXmlPartType)

Adds a CustomXmlPart to the MainDocumentPart

public DocumentFormat.OpenXml.Packaging.CustomXmlPart AddCustomXmlPart (DocumentFormat.OpenXml.Packaging.CustomXmlPartType partType);
member this.AddCustomXmlPart : DocumentFormat.OpenXml.Packaging.CustomXmlPartType -> DocumentFormat.OpenXml.Packaging.CustomXmlPart
Public Function AddCustomXmlPart (partType As CustomXmlPartType) As CustomXmlPart

Parameters

partType
CustomXmlPartType

The part type of the CustomXmlPart

Returns

The newly added part.

Applies to

AddCustomXmlPart(String)

Adds a CustomXmlPart to the MainDocumentPart

public DocumentFormat.OpenXml.Packaging.CustomXmlPart AddCustomXmlPart (string contentType);
member this.AddCustomXmlPart : string -> DocumentFormat.OpenXml.Packaging.CustomXmlPart
Public Function AddCustomXmlPart (contentType As String) As CustomXmlPart

Parameters

contentType
String

The content type of the CustomXmlPart

Returns

The newly added part.

Applies to

AddCustomXmlPart(CustomXmlPartType, String)

Adds a CustomXmlPart to the MainDocumentPart

public DocumentFormat.OpenXml.Packaging.CustomXmlPart AddCustomXmlPart (DocumentFormat.OpenXml.Packaging.CustomXmlPartType partType, string id);
member this.AddCustomXmlPart : DocumentFormat.OpenXml.Packaging.CustomXmlPartType * string -> DocumentFormat.OpenXml.Packaging.CustomXmlPart
Public Function AddCustomXmlPart (partType As CustomXmlPartType, id As String) As CustomXmlPart

Parameters

partType
CustomXmlPartType

The part type of the CustomXmlPart

id
String

The relationship id

Returns

The newly added part.

Applies to

AddCustomXmlPart(String, String)

Adds a CustomXmlPart to the MainDocumentPart

public DocumentFormat.OpenXml.Packaging.CustomXmlPart AddCustomXmlPart (string contentType, string id);
member this.AddCustomXmlPart : string * string -> DocumentFormat.OpenXml.Packaging.CustomXmlPart
Public Function AddCustomXmlPart (contentType As String, id As String) As CustomXmlPart

Parameters

contentType
String

The content type of the CustomXmlPart

id
String

The relationship id

Returns

The newly added part.

Applies to