MainDocumentPart.AddAlternativeFormatImportPart 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
AddAlternativeFormatImportPart(AlternativeFormatImportPartType) |
将 AlternativeFormatImportPart 添加到 MainDocumentPart |
AddAlternativeFormatImportPart(String) |
将 AlternativeFormatImportPart 添加到 MainDocumentPart |
AddAlternativeFormatImportPart(AlternativeFormatImportPartType, String) |
将 AlternativeFormatImportPart 添加到 MainDocumentPart |
AddAlternativeFormatImportPart(String, String) |
将 AlternativeFormatImportPart 添加到 MainDocumentPart |
AddAlternativeFormatImportPart(AlternativeFormatImportPartType)
将 AlternativeFormatImportPart 添加到 MainDocumentPart
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
参数
- partType
- AlternativeFormatImportPartType
AlternativeFormatImportPart 的部件类型
返回
新添加的部件。
适用于
AddAlternativeFormatImportPart(String)
将 AlternativeFormatImportPart 添加到 MainDocumentPart
public DocumentFormat.OpenXml.Packaging.AlternativeFormatImportPart AddAlternativeFormatImportPart (string contentType);
member this.AddAlternativeFormatImportPart : string -> DocumentFormat.OpenXml.Packaging.AlternativeFormatImportPart
Public Function AddAlternativeFormatImportPart (contentType As String) As AlternativeFormatImportPart
参数
- contentType
- String
AlternativeFormatImportPart 的内容类型
返回
新添加的部件。
适用于
AddAlternativeFormatImportPart(AlternativeFormatImportPartType, String)
将 AlternativeFormatImportPart 添加到 MainDocumentPart
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
参数
- partType
- AlternativeFormatImportPartType
AlternativeFormatImportPart 的部件类型
- id
- String
关系 ID
返回
新添加的部件。
适用于
AddAlternativeFormatImportPart(String, String)
将 AlternativeFormatImportPart 添加到 MainDocumentPart
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
参数
- contentType
- String
AlternativeFormatImportPart 的内容类型
- id
- String
关系 ID
返回
新添加的部件。