HeaderPart.AddAlternativeFormatImportPart Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應