HeaderPart.AddAlternativeFormatImportPart Method

Definition

Overloads

AddAlternativeFormatImportPart(AlternativeFormatImportPartType)

Adds a AlternativeFormatImportPart to the HeaderPart

AddAlternativeFormatImportPart(String)

Adds a AlternativeFormatImportPart to the HeaderPart

AddAlternativeFormatImportPart(AlternativeFormatImportPartType, String)

Adds a AlternativeFormatImportPart to the HeaderPart

AddAlternativeFormatImportPart(String, String)

Adds a AlternativeFormatImportPart to the HeaderPart

AddAlternativeFormatImportPart(AlternativeFormatImportPartType)

Adds a AlternativeFormatImportPart to the HeaderPart

public DocumentFormat.OpenXml.Packaging.AlternativeFormatImportPart AddAlternativeFormatImportPart (DocumentFormat.OpenXml.Packaging.AlternativeFormatImportPartType partType);
member this.AddAlternativeFormatImportPart : DocumentFormat.OpenXml.Packaging.AlternativeFormatImportPartType -> DocumentFormat.OpenXml.Packaging.AlternativeFormatImportPart
Public Function AddAlternativeFormatImportPart (partType As AlternativeFormatImportPartType) As AlternativeFormatImportPart

Parameters

partType
AlternativeFormatImportPartType

The part type of the AlternativeFormatImportPart

Returns

The newly added part.

Applies to

AddAlternativeFormatImportPart(String)

Adds a AlternativeFormatImportPart to the HeaderPart

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

Parameters

contentType
String

The content type of the AlternativeFormatImportPart

Returns

The newly added part.

Applies to

AddAlternativeFormatImportPart(AlternativeFormatImportPartType, String)

Adds a AlternativeFormatImportPart to the HeaderPart

public DocumentFormat.OpenXml.Packaging.AlternativeFormatImportPart AddAlternativeFormatImportPart (DocumentFormat.OpenXml.Packaging.AlternativeFormatImportPartType partType, string id);
member this.AddAlternativeFormatImportPart : DocumentFormat.OpenXml.Packaging.AlternativeFormatImportPartType * string -> DocumentFormat.OpenXml.Packaging.AlternativeFormatImportPart
Public Function AddAlternativeFormatImportPart (partType As AlternativeFormatImportPartType, id As String) As AlternativeFormatImportPart

Parameters

partType
AlternativeFormatImportPartType

The part type of the AlternativeFormatImportPart

id
String

The relationship id

Returns

The newly added part.

Applies to

AddAlternativeFormatImportPart(String, String)

Adds a AlternativeFormatImportPart to the HeaderPart

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

Parameters

contentType
String

The content type of the AlternativeFormatImportPart

id
String

The relationship id

Returns

The newly added part.

Applies to