SlidePart.AddImagePart 方法

定义

重载

AddImagePart(ImagePartType)

将 ImagePart 添加到 SlidePart

AddImagePart(String)

将 ImagePart 添加到 SlidePart

AddImagePart(ImagePartType, String)

将 ImagePart 添加到 SlidePart

AddImagePart(String, String)

将 ImagePart 添加到 SlidePart

AddImagePart(ImagePartType)

将 ImagePart 添加到 SlidePart

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 添加到 SlidePart

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 添加到 SlidePart

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 添加到 SlidePart

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

返回

新添加的部件。

适用于