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