共用方式為


WorkbookPart.AddThumbnailPart Method

Definition

Overloads

AddThumbnailPart(ThumbnailPartType)

Adds a ThumbnailPart to the WorkbookPart

AddThumbnailPart(String)

Adds a ThumbnailPart to the WorkbookPart

AddThumbnailPart(ThumbnailPartType, String)

Adds a ThumbnailPart to the WorkbookPart

AddThumbnailPart(String, String)

Adds a ThumbnailPart to the WorkbookPart

AddThumbnailPart(ThumbnailPartType)

Adds a ThumbnailPart to the 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

Parameters

partType
ThumbnailPartType

The part type of the ThumbnailPart

Returns

The newly added part.

Applies to

AddThumbnailPart(String)

Adds a ThumbnailPart to the 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

Parameters

contentType
String

The content type of the ThumbnailPart

Returns

The newly added part.

Applies to

AddThumbnailPart(ThumbnailPartType, String)

Adds a ThumbnailPart to the 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

Parameters

partType
ThumbnailPartType

The part type of the ThumbnailPart

id
String

The relationship id

Returns

The newly added part.

Applies to

AddThumbnailPart(String, String)

Adds a ThumbnailPart to the 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

Parameters

contentType
String

The content type of the ThumbnailPart

id
String

The relationship id

Returns

The newly added part.

Applies to