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