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