Compartir a través de


SpreadsheetDocument.AddThumbnailPart Method (String)

Addd a ThumbnailPart to the SpreadsheetDocument.

Namespace:  DocumentFormat.OpenXml.Packaging
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Declaration
Public Function AddThumbnailPart ( _
    contentType As String _
) As ThumbnailPart
'Usage
Dim instance As SpreadsheetDocument
Dim contentType As String
Dim returnValue As ThumbnailPart

returnValue = instance.AddThumbnailPart(contentType)
public ThumbnailPart AddThumbnailPart(
    string contentType
)

Parameters

  • contentType
    Type: System.String
    the content type of the ThumbnailPart

Return Value

Type: DocumentFormat.OpenXml.Packaging.ThumbnailPart
The newly added ThumbnailPart.

See Also

Reference

SpreadsheetDocument Class

SpreadsheetDocument Members

AddThumbnailPart Overload

DocumentFormat.OpenXml.Packaging Namespace